mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
decline submission
This commit is contained in:
1 parent
96cf228e74
commit
2764a18252
25 files changed
+439
-28
No files matched your search
@@ -15,6 +15,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?
|
||||
return render :declined if @submitter.declined_at?
|
||||
|
||||
Submitters.preload_with_pages(@submitter)
|
||||
|
||||
@@ -56,6 +57,8 @@ class SubmitFormController < ApplicationController
|
||||
return render json: { error: 'Form has been expired.' }, status: :unprocessable_entity
|
||||
end
|
||||
|
||||
return render json: { error: 'Form has been declined.' }, status: :unprocessable_entity if submitter.declined_at?
|
||||
|
||||
Submitters::SubmitValues.call(submitter, params, request)
|
||||
|
||||
head :ok
|
||||
|
||||
Reference in new issue
Block a user