fix submissions destroy action

This commit is contained in:
Pete Matsyburka committed 2023-11-16 01:55:57 +02:00
1 parent 3c69430b94
commit 26f7d5cf0d
1 file changed
+1 -1
@@ -3,7 +3,7 @@
module Api
class SubmissionsController < ApiBaseController
load_and_authorize_resource :template, only: :create
load_and_authorize_resource :submission, only: %i[show index]
load_and_authorize_resource :submission, only: %i[show index destroy]
before_action only: :create do
authorize!(:create, Submission)