card-mod-permissions 0.11.3 → 0.11.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/set/all/permissions.rb +2 -1
- data/set/all/update_read_rules.rb +1 -1
- data/set/right/read.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 588c237c885364801617bf81982e5c202a6cbc9e0b5f4931bc93f3315152c1a5
|
4
|
+
data.tar.gz: f0502bd2c432523959497206e788d4d70b8b00bb5712c1a3a4d4684fbf6d6e25
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a65e935794bf6c7d9a714158582c3941cbdbe08240e9a90c724593b95f584bf798486207550fe6fcffb4004d1ddb22fb579dac6a0fc81ad1235a2f92fc8c36d0
|
7
|
+
data.tar.gz: 066fda9824c995c94afa6bf641d272b015932dd284a948a2e6715bd025f20a396605d26232465dce304167d839c46c616d5d5345de7c3cb73f4c032f3ee47054
|
data/set/all/permissions.rb
CHANGED
@@ -78,7 +78,8 @@ def require_permission_rule! rule_id, action
|
|
78
78
|
return if rule_id
|
79
79
|
# RULE missing. should not be possible.
|
80
80
|
# generalize this to handling of all required rules
|
81
|
-
errors.add :permission_denied,
|
81
|
+
errors.add :permission_denied,
|
82
|
+
t(:permission_error_no_action_rule, action: action, name: name)
|
82
83
|
raise Card::Error::PermissionDenied, self
|
83
84
|
end
|
84
85
|
|
@@ -2,7 +2,7 @@
|
|
2
2
|
# FIXME: the following don't really belong here, but they have to come after
|
3
3
|
# the reference stuff. we need to organize a bit!
|
4
4
|
|
5
|
-
event :update_rule_cache, :finalize, when: :
|
5
|
+
event :update_rule_cache, :finalize, when: :rule? do
|
6
6
|
Card::Rule.clear_rule_cache
|
7
7
|
end
|
8
8
|
|
data/set/right/read.rb
CHANGED
@@ -2,7 +2,7 @@ include Abstract::Permission
|
|
2
2
|
|
3
3
|
format :html do include Abstract::Permission::HtmlFormat end
|
4
4
|
|
5
|
-
event :cascade_read_rule, :finalize, after: :update_rule_cache, when: :
|
5
|
+
event :cascade_read_rule, :finalize, after: :update_rule_cache, when: :rule? do
|
6
6
|
return unless name_is_changing? || trash_is_changing?
|
7
7
|
|
8
8
|
update_read_ruled_cards
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: card-mod-permissions
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.11.
|
4
|
+
version: 0.11.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ethan McCutchen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2021-
|
13
|
+
date: 2021-05-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: card
|
@@ -18,14 +18,14 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.101.
|
21
|
+
version: 1.101.4
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version: 1.101.
|
28
|
+
version: 1.101.4
|
29
29
|
description: ''
|
30
30
|
email:
|
31
31
|
- info@decko.org
|