mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 06:42:32 -05:00
error update if declined
This commit is contained in:
1 parent
9c02ed66f5
commit
3e250bfb28
1 file changed
+4
@@ -40,6 +40,10 @@ module Api
|
||||
return render json: { error: 'Submitter has already completed the submission.' }, status: :unprocessable_content
|
||||
end
|
||||
|
||||
if @submitter.declined_at?
|
||||
return render json: { error: 'Submitter has already declined the submission.' }, status: :unprocessable_content
|
||||
end
|
||||
|
||||
submission = @submitter.submission
|
||||
role = submission.template_submitters.find { |e| e['uuid'] == @submitter.uuid }['name']
|
||||
|
||||
|
||||
Reference in new issue
Block a user