bsm-sso-client 0.7.5 → 0.7.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/bsm/sso/client/ability.rb +4 -4
- metadata +2 -2
@@ -53,14 +53,14 @@ module Bsm::Sso::Client::Ability
|
|
53
53
|
@user.roles.each do |name|
|
54
54
|
same_as(name)
|
55
55
|
end
|
56
|
-
|
57
|
-
|
58
|
-
|
56
|
+
|
57
|
+
same_as(:any)
|
58
|
+
same_as(:administrator) if @user.level >= 90
|
59
59
|
end
|
60
60
|
|
61
61
|
# @return [Symbol] the user scope
|
62
62
|
def scope
|
63
|
-
@scope ||= (user.respond_to?(:
|
63
|
+
@scope ||= (user.respond_to?(:kind) && user.kind? ? user.kind.to_sym : :client)
|
64
64
|
end
|
65
65
|
|
66
66
|
# @return [Set] applied roles
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bsm-sso-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.6
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|