mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 23:32:33 -05:00
fix tempalte clone roles
This commit is contained in:
1 parent
c6b004f107
commit
0c039ee64f
2 files changed
+4
-3
No files matched your search
@@ -116,7 +116,8 @@ class TemplatesController < ApplicationController
|
||||
end
|
||||
|
||||
def authorized_clone_account_id?(account_id)
|
||||
true_user.account_id.to_s == account_id.to_s || true_user.account.linked_accounts.exists?(id: account_id)
|
||||
true_user.account_id.to_s == account_id.to_s ||
|
||||
true_user.account.linked_accounts.accessible_by(current_ability).exists?(id: account_id)
|
||||
end
|
||||
|
||||
def maybe_redirect_to_template(template)
|
||||
|
||||
Reference in new issue
Block a user