trabajo-afectivo/app/policies/controllers/ticket_states_controller_policy.rb

7 lines
309 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class Controllers::TicketStatesControllerPolicy < Controllers::ApplicationControllerPolicy
permit! %i[index show], to: ['ticket.agent', 'admin.object', 'ticket.customer']
permit! %i[create update destroy], to: 'admin.object'
end