mirror of
https://github.com/docusealco/docuseal
synced 2026-11-07 15:22:33 -05:00
view only party
This commit is contained in:
1 parent
b6fb7c6977
commit
e88874e757
42 files changed
+620
-78
No files matched your search
@@ -71,6 +71,12 @@ class SubmitFormController < ApplicationController
|
||||
status: :unprocessable_content
|
||||
end
|
||||
|
||||
if @submitter.viewer?
|
||||
Rollbar.warning("Submit viewer: #{@submitter.id}") if defined?(Rollbar)
|
||||
|
||||
return render json: { error: I18n.t('form_is_view_only') }, status: :unprocessable_content
|
||||
end
|
||||
|
||||
Submitters::SubmitValues.call(@submitter, params, request)
|
||||
|
||||
head :ok
|
||||
|
||||
Reference in new issue
Block a user