show multiple signatures toggle on cloud

This commit is contained in:
Pete Matsyburka
2024-02-18 21:06:16 +02:00
parent 0910c8e100
commit 5995f2e427
2 changed files with 17 additions and 21 deletions
-2
View File
@@ -123,7 +123,6 @@
<% end %>
</div>
<% end %>
<% if !Docuseal.multitenant? %>
<% account_config = AccountConfig.where(account: current_account, key: AccountConfig::ESIGNING_PREFERENCE_KEY).first_or_initialize(value: 'multiple') %>
<% if can?(:manage, account_config) %>
<div class="px-1 mt-8 max-w-xl">
@@ -143,6 +142,5 @@
<% end %>
</div>
<% end %>
<% end %>
</div>
</div>
@@ -341,8 +341,6 @@ module Submissions
def fetch_sign_reason(submitter)
reason_name = submitter.email || submitter.name || submitter.phone
return sign_reason(reason_name) if Docuseal.multitenant?
config =
if Docuseal.multitenant?
AccountConfig.where(account: submitter.account, key: AccountConfig::ESIGNING_PREFERENCE_KEY)