mirror of
https://github.com/docusealco/docuseal
synced 2026-11-06 23:12:33 -05:00
refactor 2fa
This commit is contained in:
1 parent
fe6baba8bf
commit
347be0137d
8 files changed
+84
-33
No files matched your search
@@ -17,7 +17,8 @@ class SubmitFormDownloadController < ApplicationController
|
||||
@submitter.submission.template&.archived_at? ||
|
||||
AccountConfig.exists?(account_id: @submitter.account_id,
|
||||
key: AccountConfig::ALLOW_TO_PARTIAL_DOWNLOAD_KEY,
|
||||
value: false)
|
||||
value: false) ||
|
||||
!Submitters::AuthorizedForForm.call(@submitter, current_user, request)
|
||||
|
||||
last_completed_submitter = @submitter.submission.submitters
|
||||
.where.not(id: @submitter.id)
|
||||
|
||||
Reference in new issue
Block a user