mumukit-auth 2.0.1 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit/auth/permissions.rb +1 -1
- data/lib/mumukit/auth/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: ff7c69435ecb899c5608c46cbed9be525b22070d
|
4
|
+
data.tar.gz: 2f346c4d3278634444c8869610e4ee6a22e4f01e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f96bd977dae66d8eace8ab3e4f842e2794e65ebe4c60ec0ea3deeb18fa1025e74e4601cf54c4d814593a8ec2ca27e79e66111a90e8e64d184d65a5c2eea1e4a
|
7
|
+
data.tar.gz: 1f7202678e723cd41214f426f267f1e2203d03036ef6803bcb8ef4c49cb08d6e479bbfaae02f8aca06043c0f9f32b822a464132cc7aac9f874a76077cb45dd56
|
@@ -6,7 +6,7 @@ class Mumukit::Auth::Permissions
|
|
6
6
|
def initialize(scopes={})
|
7
7
|
raise 'invalid scopes' if scopes.any? { |key, value| value.class != Mumukit::Auth::Scope }
|
8
8
|
|
9
|
-
@scopes = scopes
|
9
|
+
@scopes = scopes.with_indifferent_access
|
10
10
|
end
|
11
11
|
|
12
12
|
def has_permission?(role, resource_slug)
|
data/lib/mumukit/auth/version.rb
CHANGED