mumuki-laboratory 9.14.0 → 9.14.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/ajax_controller.rb +5 -0
- data/lib/mumuki/laboratory/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bc6cd361b66c4bf555f6c76814b671fb3dd477554858bf597a069524bad986de
|
4
|
+
data.tar.gz: 456af32a6deea453adc9b107351cb7fdf08f7f2139127850bc7b169813f002b7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f96e1aa34781e87da4108b64c4bec13ef5dd071755250eb9ce3a1cd484808f2f9939df6d95fd87c2cd401990cc39df6462569ba65f5dddb78c2888efa9e89126
|
7
|
+
data.tar.gz: 9c4a276ad0b94d856d26cfc8761167de630ee6cb75abedaadec6802b1f6a01c4cabb3c9270069e1c6d6a5a4bc4fe39545f0bcb834b8b1beefbe940f71dfcd56c
|
@@ -1,9 +1,14 @@
|
|
1
1
|
class AjaxController < ApplicationController
|
2
2
|
before_action :authenticate!
|
3
|
+
before_action :validate_organization_enabled!, on: :create
|
3
4
|
|
4
5
|
private
|
5
6
|
|
6
7
|
def authenticate!
|
7
8
|
head 403 unless current_user?
|
8
9
|
end
|
10
|
+
|
11
|
+
def validate_organization_enabled!
|
12
|
+
Organization.current.validate_enabled!
|
13
|
+
end
|
9
14
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-laboratory
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 9.14.
|
4
|
+
version: 9.14.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Franco Bulgarelli
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: 9.14.
|
33
|
+
version: 9.14.1
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: 9.14.
|
40
|
+
version: 9.14.1
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: mumukit-bridge
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|