show multiple signatures toggle on cloud

pull/217/head
Pete Matsyburka 2 years ago
parent 0910c8e100
commit 5995f2e427

@ -123,7 +123,6 @@
<% end %> <% end %>
</div> </div>
<% end %> <% end %>
<% if !Docuseal.multitenant? %>
<% account_config = AccountConfig.where(account: current_account, key: AccountConfig::ESIGNING_PREFERENCE_KEY).first_or_initialize(value: 'multiple') %> <% account_config = AccountConfig.where(account: current_account, key: AccountConfig::ESIGNING_PREFERENCE_KEY).first_or_initialize(value: 'multiple') %>
<% if can?(:manage, account_config) %> <% if can?(:manage, account_config) %>
<div class="px-1 mt-8 max-w-xl"> <div class="px-1 mt-8 max-w-xl">
@ -143,6 +142,5 @@
<% end %> <% end %>
</div> </div>
<% end %> <% end %>
<% end %>
</div> </div>
</div> </div>

@ -341,8 +341,6 @@ module Submissions
def fetch_sign_reason(submitter) def fetch_sign_reason(submitter)
reason_name = submitter.email || submitter.name || submitter.phone reason_name = submitter.email || submitter.name || submitter.phone
return sign_reason(reason_name) if Docuseal.multitenant?
config = config =
if Docuseal.multitenant? if Docuseal.multitenant?
AccountConfig.where(account: submitter.account, key: AccountConfig::ESIGNING_PREFERENCE_KEY) AccountConfig.where(account: submitter.account, key: AccountConfig::ESIGNING_PREFERENCE_KEY)

Loading…
Cancel
Save