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 +4 -4
- data/app/services/forest_liana/ability/permission.rb +3 -2
- data/lib/forest_liana/version.rb +1 -1
- metadata +2 -2
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/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
|