adjust conditions

This commit is contained in:
Pete Matsyburka committed 2025-05-12 11:05:48 +03:00
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],