adjust conditions

This commit is contained in:
Pete Matsyburka
2025-05-11 16:11:02 +03:00
parent 544306eac4
commit 34433c0575
12 changed files with 35 additions and 35 deletions
@@ -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],