forest_liana 8.0.1 → 8.0.3
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: 9f0ce2e7035cd2f6753ad02766d6a0eefdf7d15b4610d4b55012ff289b3ff975
|
4
|
+
data.tar.gz: f07bb7559d29baa4260b4c8a0ee2dd4e94de2fbe78c133285c21f7fdd8c0c8f2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 839cffb2b8a1bd3b4f4c16945215a7cdcd59a4817d8dd0f182b45e78facaa9198ddf9f15e52567a25de4e15ffbd230b729c3d81872bfe843dbaa90d16ec48d77
|
7
|
+
data.tar.gz: 2d275bb4fef80fbc9d96c78d85c70fa894c096efec8ef8bd82537da715cb54463d249d3727b60c176881d7e3e4aa0fa242e57abf0491093f032ce8ed81adf8d7
|
@@ -13,13 +13,14 @@ module ForestLiana
|
|
13
13
|
|
14
14
|
user_data = get_user_data(user['id'])
|
15
15
|
collections_data = get_collections_permissions_data
|
16
|
+
collection_name = ForestLiana.name_for(collection)
|
16
17
|
|
17
18
|
begin
|
18
|
-
is_allowed = collections_data[
|
19
|
+
is_allowed = collections_data[collection_name][action].include? user_data['roleId']
|
19
20
|
# re-fetch if user permission is not allowed (may have been changed)
|
20
21
|
unless is_allowed
|
21
22
|
collections_data = get_collections_permissions_data(true)
|
22
|
-
is_allowed = collections_data[
|
23
|
+
is_allowed = collections_data[collection_name][action].include? user_data['roleId']
|
23
24
|
end
|
24
25
|
|
25
26
|
is_allowed
|
data/lib/forest_liana/engine.rb
CHANGED
@@ -107,7 +107,7 @@ module ForestLiana
|
|
107
107
|
if ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP']
|
108
108
|
FOREST_LOGGER.warn "DEPRECATION WARNING: FOREST_DEACTIVATE_AUTOMATIC_APIMAP option has been renamed. Please use FOREST_DISABLE_AUTO_SCHEMA_APPLY instead."
|
109
109
|
end
|
110
|
-
bootstrapper.synchronize unless ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP'] || ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY'] || Rails.env.test?
|
110
|
+
bootstrapper.synchronize unless ENV['FOREST_DEACTIVATE_AUTOMATIC_APIMAP'] == true || ENV['FOREST_DISABLE_AUTO_SCHEMA_APPLY'] == true || Rails.env.test?
|
111
111
|
end
|
112
112
|
end
|
113
113
|
end
|
data/lib/forest_liana/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: forest_liana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 8.0.
|
4
|
+
version: 8.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sandro Munda
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-04-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|