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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5ad2aade204189333166666c1e645465a61863e7157e88a3cb7f7c70fbc56531
4
- data.tar.gz: 3ba1bd40a4cce76c17a0c33ce377939f67c959ac17d09f324157d8b902a07dc7
3
+ metadata.gz: bc6cd361b66c4bf555f6c76814b671fb3dd477554858bf597a069524bad986de
4
+ data.tar.gz: 456af32a6deea453adc9b107351cb7fdf08f7f2139127850bc7b169813f002b7
5
5
  SHA512:
6
- metadata.gz: 404d077ba985d112f9a213b2cf548fe0c57dffe9b09d94472bf32a4505fb8cd90c3d5572d74eb2d03babe20644cdd9c7e7626bc2e3c9865fe665cbee80c95b1d
7
- data.tar.gz: c1250fb109892e4646adf02f6ddc7b86fc867377a194b0846ff0e38722e116b51357e4d4adf2a66eea06b146f18bf3134d0e35e9ef8519d8adf79d563788610d
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
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '9.14.0'
3
+ VERSION = '9.14.1'
4
4
  end
5
5
  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.0
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-02 00:00:00.000000000 Z
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.0
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.0
40
+ version: 9.14.1
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement