forest_liana 8.0.2 → 8.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 225183ba46cac224e658cbeabebabfdd82a8c8fa26f3ddc7b1be793972ab19d1
4
- data.tar.gz: a40a8556e5eabcc4d04154f8def7c205bf3f605ff153cdf70077e248db56a9e5
3
+ metadata.gz: 9f0ce2e7035cd2f6753ad02766d6a0eefdf7d15b4610d4b55012ff289b3ff975
4
+ data.tar.gz: f07bb7559d29baa4260b4c8a0ee2dd4e94de2fbe78c133285c21f7fdd8c0c8f2
5
5
  SHA512:
6
- metadata.gz: 531ba0fc904568a49903d82ef45e608d09dadcb80ba2acc298bc96d5e0684155a9b07f1ed5ed0a5d018eae1a1067dae51641e1012be416fa9e8e0431565f26e9
7
- data.tar.gz: c7c7f6ada1f04eb39a69cfd4f3aaa4e98d7263cb87d942585dc06976ba0f1f07ebfed6b5db1e943c907d731d8bd1e0cfbccced482ec716b5fc9c88c7fc80ef81
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
@@ -1,3 +1,3 @@
1
1
  module ForestLiana
2
- VERSION = "8.0.2"
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.2
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-22 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