permission_policy 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/permission_policy/controller_additions.rb +7 -3
- data/lib/permission_policy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d197b0a408448eb634f15c4229434f643229daca
|
4
|
+
data.tar.gz: a3861829e10f0738d884080167e91f76cb802736
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa90267b5878dbdad8f3140a0ac8f5e08a2db1e8aa06e8d6e742eb36d07491a4fc91989d23a7b6844e7bf9fb42f73a4019ba1e620c105fff55624bb69405ca88
|
7
|
+
data.tar.gz: 12974cc8b86fabea2530d79872816bcd1bc94810d9fcbc1270f2fe193921b0b7f92ba93d6bae8938cd2b126b3befa36cc8b0468769522c062402169c774a6cd7
|
data/CHANGELOG.md
CHANGED
@@ -7,8 +7,12 @@ module PermissionPolicy
|
|
7
7
|
PermissionPolicy.authorize_with(*args)
|
8
8
|
end
|
9
9
|
|
10
|
-
def verify_authorization!
|
11
|
-
PermissionPolicy.verify_authorization!(
|
10
|
+
def verify_authorization!
|
11
|
+
PermissionPolicy.verify_authorization!(true)
|
12
|
+
end
|
13
|
+
|
14
|
+
def skip_verify_authorization
|
15
|
+
PermissionPolicy.verify_authorization!(false)
|
12
16
|
end
|
13
17
|
end
|
14
18
|
|
@@ -27,7 +31,7 @@ module PermissionPolicy
|
|
27
31
|
end
|
28
32
|
|
29
33
|
def verify_authorization
|
30
|
-
raise PermissionPolicy::NotVerified unless
|
34
|
+
raise PermissionPolicy::NotVerified unless permission_policy.verified
|
31
35
|
end
|
32
36
|
end
|
33
37
|
end
|