avo 2.21.1.pre.pr1484 → 2.21.2.pre.pr1486
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of avo might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/avo/services/authorization_service.rb +1 -2
- data/lib/avo/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5460c088fcdb06944cf17960a56317ca92ce641858d0be2ae930dddbe527bd0
|
4
|
+
data.tar.gz: e2973cb82ccd2a68c857be57bd18a73c45656d340574c00bb135e67ee3c999b0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a6063f100b7ba2a49aac977b6d6e6961d75c3af62befac1d3e8de2154c84396021d37cae03cacc74a872f72172c9a506af332e3c2c6b025f2f9ff45f3743c3
|
7
|
+
data.tar.gz: a6112c2759fddc32613f17eba6cf6ae7c3049c0abfb89ce50c314b2cd7f89d5df6b1e743fcf44663fc1f4fcfdc92f85368464ec9a13bb5b29b12b03d5ade27d5
|
data/Gemfile.lock
CHANGED
@@ -29,7 +29,6 @@ module Avo
|
|
29
29
|
|
30
30
|
def authorize(user, record, action, policy_class: nil, **args)
|
31
31
|
return true if skip_authorization
|
32
|
-
return true if user.nil?
|
33
32
|
|
34
33
|
client.authorize user, record, action, policy_class: policy_class
|
35
34
|
|
@@ -64,7 +63,7 @@ module Avo
|
|
64
63
|
end
|
65
64
|
|
66
65
|
def apply_policy(user, model, policy_class: nil)
|
67
|
-
return model if skip_authorization
|
66
|
+
return model if skip_authorization
|
68
67
|
|
69
68
|
client.apply_policy(user, model, policy_class: policy_class)
|
70
69
|
rescue NoPolicyError => error
|
data/lib/avo/version.rb
CHANGED