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: 3a95d56b4cc110db3523c300dff728870eb3162a2b8858485c671e2873414d0b
4
- data.tar.gz: 64b9bd27fc00bc777d96e5770562b4e681f6e3fc5bf9f43cf468c00e7c29d56a
3
+ metadata.gz: 3140a4de2c192389a9440015088a9433258e7d90302d2928c934cf3c9a61f396
4
+ data.tar.gz: ec61382b8d23822469f4a99e4014fd7eca6408058ded84980ef75c3020369777
5
5
  SHA512:
6
- metadata.gz: abfe621993259bcd46e2d58413e4a0054811d51cb9daf76cbf1c0f2d0aa4b02627ad294b8be2c206bcc6b583105690d43b907bdedc3004d75bb45bab20a35e73
7
- data.tar.gz: 5e9cadd3e38079d53ee2b264de9a27539afb46326fa34adb4ad6f5cec835ff7d26332721a0d5b3fae9b1284416b03f4f3ddc5d3f4edc8bc440103bee41bbb729
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Login
3
- VERSION = '7.5.1'
3
+ VERSION = '7.6.0'
4
4
  end
5
5
  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.5.1
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: 2020-12-13 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler