mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 07:22:32 -05:00
ability to share template with testing account
This commit is contained in:
1 parent
8630c68631
commit
c67188edf8
25 files changed
+454
-206
No files matched your search
@@ -5,7 +5,14 @@ class Ability
|
||||
|
||||
def initialize(user)
|
||||
can :manage, Template, account_id: user.account_id
|
||||
|
||||
can %i[read update create], Template,
|
||||
Abilities::TemplateConditions.collection(user) do |template|
|
||||
Abilities::TemplateConditions.entity(template, user:, ability: 'manage')
|
||||
end
|
||||
|
||||
can :manage, TemplateFolder, account_id: user.account_id
|
||||
can :manage, TemplateSharing, template: { account_id: user.account_id }
|
||||
can :manage, Submission, account_id: user.account_id
|
||||
can :manage, Submitter, submission: { account_id: user.account_id }
|
||||
can :manage, User, account_id: user.account_id
|
||||
|
||||
Reference in new issue
Block a user