error update if declined

pull/555/merge
Pete Matsyburka 1 week ago
parent 9c02ed66f5
commit 3e250bfb28

@ -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']

Loading…
Cancel
Save