effective_roles 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/acts_as_role_restricted.rb +1 -1
- data/lib/effective_roles/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0008cff5d883db3f4b297653d083c5d189efad97
|
4
|
+
data.tar.gz: 91640687e9b387abfd09680d1f3812743e501ebb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1ed90b01364f7966d6f628e6779a0ddb302d0d42a5ee3c2a9b6ccada42599be8dd353cf514eb84f611bdf9be874d40f9bc9274ac2e5b18cafebda162ce7cb1a8
|
7
|
+
data.tar.gz: bb536a4f8677cc5a619d4a7a816b97ca11eb1b3341ce7d971c04fc605abbf2ed17d727b74b75bb03abd702f641ff117e1f8abd884c585efb31c9886f665c7273
|
@@ -57,7 +57,7 @@ module ActsAsRoleRestricted
|
|
57
57
|
|
58
58
|
roles = (roles.map { |role| role.to_sym } & EffectiveRoles.roles)
|
59
59
|
|
60
|
-
where(roles.map { |role| "NOT(#{self.table_name}.roles_mask & %d > 0)" % 2**EffectiveRoles.roles.index(role) }.join('
|
60
|
+
where(roles.map { |role| "NOT(#{self.table_name}.roles_mask & %d > 0)" % 2**EffectiveRoles.roles.index(role) }.join(' AND '))
|
61
61
|
end
|
62
62
|
end
|
63
63
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: effective_roles
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Code and Effect
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|