mirror of
https://github.com/docusealco/docuseal
synced 2026-11-04 14: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
@@ -6,6 +6,8 @@ class TemplatesFoldersController < ApplicationController
|
||||
def edit; end
|
||||
|
||||
def update
|
||||
authorize!(:update, @template)
|
||||
|
||||
name = [params[:parent_name], params[:name]].compact_blank.join(' / ')
|
||||
|
||||
@template.folder = TemplateFolders.find_or_create_by_name(current_user, name)
|
||||
|
||||
Reference in new issue
Block a user