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: 1a096806e48baa86f558bccc4822c4cfe7ebf618de9756e8816b771e730548e6
4
- data.tar.gz: defa4ee163fc1e2095c1a67141c2f74d4a15b8fbbefaab4adddbeffc3821a4d3
3
+ metadata.gz: 9f0ce2e7035cd2f6753ad02766d6a0eefdf7d15b4610d4b55012ff289b3ff975
4
+ data.tar.gz: f07bb7559d29baa4260b4c8a0ee2dd4e94de2fbe78c133285c21f7fdd8c0c8f2
5
5
  SHA512:
6
- metadata.gz: be857bb6889f71a19279ab9bef8ba2b0a3ee962cbabdbf2fe518673ad080d299fa698096f73967378a0cefea9321a5bbdfc76aceebd929b60591a8525732608f
7
- data.tar.gz: 47d32956992ae8e4e9c77086000f1440c7e2e08d655497d119e668e9c6e2426be6d41b9d02f407694bcd26578511df8a967283bfe4eaff95dd593d19c6041c89
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[collection.name][action].include? user_data['roleId']
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[collection.name][action].include? user_data['roleId']
23
+ is_allowed = collections_data[collection_name][action].include? user_data['roleId']
23
24
  end
24
25
 
25
26
  is_allowed
@@ -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
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "8.0.1"
2
+ VERSION = "8.0.3"
3
3
  end
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.1
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-03-16 00:00:00.000000000 Z
11
+ date: 2023-04-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails