mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 22:52:32 -05:00
add expire at
This commit is contained in:
1 parent
c4a91c2b34
commit
3a2910f717
13 files changed
+93
-16
No files matched your search
@@ -14,6 +14,7 @@ class SubmitFormController < ApplicationController
|
||||
|
||||
return redirect_to submit_form_completed_path(@submitter.slug) if @submitter.completed_at?
|
||||
return render :archived if @submitter.submission.template.archived_at? || @submitter.submission.archived_at?
|
||||
return render :expired if @submitter.submission.expired?
|
||||
|
||||
Submitters.preload_with_pages(@submitter)
|
||||
|
||||
@@ -51,6 +52,10 @@ class SubmitFormController < ApplicationController
|
||||
return render json: { error: 'Form has been archived.' }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
if submitter.submission.expired?
|
||||
return render json: { error: 'Form has been expired.' }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
Submitters::SubmitValues.call(submitter, params, request)
|
||||
|
||||
head :ok
|
||||
|
||||
Reference in new issue
Block a user