Bugfix: Add missing authorization check for tickets#create

This commit is contained in:
Ryan Lue 2020-05-27 17:21:45 +08:00
parent ea395db5c6
commit 09a808162d

View file

@ -6,7 +6,7 @@ class TicketsController < ApplicationController
include ChecksUserAttributesByCurrentUserPermission
include TicketStats
prepend_before_action -> { authorize! }, only: %i[selector import_example import_start]
prepend_before_action -> { authorize! }, only: %i[create selector import_example import_start]
prepend_before_action :authentication_check
# GET /api/v1/tickets