mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 22:42:32 -05:00
add authorization checks
This commit is contained in:
1 parent
755decca27
commit
e52830c9b4
7 files changed
+14
No files matched your search
@@ -10,6 +10,8 @@ class TemplateDocumentsController < ApplicationController
|
||||
end
|
||||
|
||||
def create
|
||||
authorize!(:update, @template)
|
||||
|
||||
if params[:blobs].blank? && params[:files].blank?
|
||||
return render json: { error: I18n.t('file_is_missing') }, status: :unprocessable_content
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user