mirror of
https://github.com/docusealco/docuseal
synced 2026-11-05 06:42:32 -05:00
adjust conditions
This commit is contained in:
1 parent
544306eac4
commit
34433c0575
12 files changed
+35
-35
No files matched your search
@@ -5,7 +5,7 @@ module Api
|
||||
load_and_authorize_resource :template
|
||||
|
||||
def create
|
||||
authorize!(:manage, @template)
|
||||
authorize!(:create, @template)
|
||||
|
||||
ActiveRecord::Associations::Preloader.new(
|
||||
records: [@template],
|
||||
|
||||
Reference in new issue
Block a user