mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14:42:32 -05:00
tenants test flag
This commit is contained in:
1 parent
ced5ab67ab
commit
a036483938
3 files changed
+5
-3
No files matched your search
@@ -8,7 +8,9 @@ class TemplateSharingsTestingController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
testing_account = Accounts.find_or_create_testing_user(true_user.account).account
|
||||
account = can?(:manage, :tenants_test) ? current_account : true_user.account
|
||||
|
||||
testing_account = Accounts.find_or_create_testing_user(account).account
|
||||
|
||||
if params[:value] == '1'
|
||||
TemplateSharing.create!(ability: :manage, account: testing_account, template: @template)
|
||||
|
||||
Reference in new issue
Block a user