censor_bear 0.1.26 → 0.1.27
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e50aaeb8a20994e3a523ded0489259527714d431aa457f94236616b912fca5fd
|
4
|
+
data.tar.gz: 61b8fd343c7b2ca4c65c1d532f7ac5a62283a26a3cc861c9592f5d12dca57c33
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 912dd98649a6c10feed67e7bf238536df82c84e8afc138b2f660e553fe4875df037e81a283d67d2dd5e929f8e08bafcee0014a898a9e5540ee604d0ed896ebc7
|
7
|
+
data.tar.gz: e2f804ffce1b5448a9ea8e4ecc021ddfbb3164fc1d50671ef03fb8693026079748b79787efd62b892a90ed57d0d23f4314edce26e7b834620346c9ed5324837d
|
@@ -12,7 +12,7 @@ module CensorBear
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def authenticate_censor_bear_user!
|
15
|
-
render(json: { msg: "no permission" }, status: 403) unless current_user.
|
15
|
+
render(json: { msg: "no permission" }, status: 403) unless current_user.censor_bear_admin?
|
16
16
|
end
|
17
17
|
|
18
18
|
def current_user
|
data/lib/censor_bear/version.rb
CHANGED