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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8a09e4b0609152682c605b0f29b036d129993bd9
4
- data.tar.gz: e6d696e1136efb735d7c703edab65f705a8e9285
3
+ metadata.gz: f5ff162eec4ae039ed179640b7b12f1a3debfba1
4
+ data.tar.gz: b1f6c80b249c9f56eb359365454d471c6d9a1242
5
5
  SHA512:
6
- metadata.gz: d5a987e3b36bf92042b812d5952f8159fe289e26adb6a963d9d3f270f1c2da985f71eb4382bf99681bd1b00b9ce4c99d0e72b41deb82b946a9c36b96c8615d61
7
- data.tar.gz: ee2f580736f681fe36dc9f61130395b1de00bd140d346239c0ad5f1b3f9c8511d3ad2ae8a7d6ce263d237344a1b39e82d17df252e6cbbf91d2fa14fc325393e0
6
+ metadata.gz: 6b0472240c46185ec67431fae5642e50b44a209747ddedb5367ad6fe9fe4aeda474cbcdd79962d901287a5b42296a2073a6dabf3d5168a9fd1d1663d75a62c07
7
+ data.tar.gz: 5e2a12e1c53e03ab859664b72f26844792629ba5c14278ad0aee6f3cd242c216cebb95bad9a67bfd2d16d5ad831bbe966b18ab8bfa1caf81136ad718db1f55b9
@@ -22,7 +22,8 @@ module Adeia
22
22
  end
23
23
 
24
24
  def can?
25
- merge_permissions(token_rights(right_name), send("#{@action}_rights"))
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
@@ -1,3 +1,3 @@
1
1
  module Adeia
2
- VERSION = "0.6.2"
2
+ VERSION = "0.7.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: adeia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.2
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - khcr