mumukit-login 7.5.1 → 7.6.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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3140a4de2c192389a9440015088a9433258e7d90302d2928c934cf3c9a61f396
|
4
|
+
data.tar.gz: ec61382b8d23822469f4a99e4014fd7eca6408058ded84980ef75c3020369777
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6769fb8f244e34fe7fd79948aeb9cb12a05d8153a8d38a62886bd774c8a9bf5dbdbc3be552833964ca5522dd8d9b20260758c4000c652a36a1a8c25795570b89
|
7
|
+
data.tar.gz: '008a499ae28050234e595bdf2e9c0576c7533228af1d2cf0724fa6e8430aa0cb437a3f2d8b409d88d908cf74ffb1a3c26420c61031885d6986e1cc0382be04d5'
|
@@ -15,5 +15,11 @@ module Mumukit::Login::AuthorizationHelpers
|
|
15
15
|
current_user.has_permission? role, authorization_slug
|
16
16
|
end
|
17
17
|
|
18
|
+
Mumukit::Auth::Roles::ROLES.each do |role|
|
19
|
+
define_method "authorize_#{role}!" do
|
20
|
+
authorize! role
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
18
24
|
required :authorization_slug
|
19
25
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-login
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 7.
|
4
|
+
version: 7.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Leonardo Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|