mirror of
https://github.com/docusealco/docuseal
synced 2026-11-09 23:42:32 -05:00
fix template conditions
This commit is contained in:
1 parent
ab6cd0e89c
commit
071f187605
1 file changed
+1
-1
@@ -25,7 +25,7 @@ module Abilities
|
||||
account_ids = [user.account_id, TemplateSharing::ALL_ID]
|
||||
|
||||
template.template_sharings.any? do |e|
|
||||
e.account_id.in?(account_ids) && (ability.nil? || e.ability == ability)
|
||||
e.account_id.in?(account_ids) && (ability.nil? || e.ability == 'manage' || e.ability == ability)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user