adeia 0.6.2 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/adeia/authorization.rb +2 -1
- data/lib/adeia/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: f5ff162eec4ae039ed179640b7b12f1a3debfba1
|
4
|
+
data.tar.gz: b1f6c80b249c9f56eb359365454d471c6d9a1242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6b0472240c46185ec67431fae5642e50b44a209747ddedb5367ad6fe9fe4aeda474cbcdd79962d901287a5b42296a2073a6dabf3d5168a9fd1d1663d75a62c07
|
7
|
+
data.tar.gz: 5e2a12e1c53e03ab859664b72f26844792629ba5c14278ad0aee6f3cd242c216cebb95bad9a67bfd2d16d5ad831bbe966b18ab8bfa1caf81136ad718db1f55b9
|
data/lib/adeia/authorization.rb
CHANGED
@@ -22,7 +22,8 @@ module Adeia
|
|
22
22
|
end
|
23
23
|
|
24
24
|
def can?
|
25
|
-
|
25
|
+
action_rights = @user.nil? ? {} : send("#{@action}_rights")
|
26
|
+
merge_permissions(token_rights(right_name), action_rights)
|
26
27
|
@rights.any? && authorize?
|
27
28
|
end
|
28
29
|
|
data/lib/adeia/version.rb
CHANGED