ticket_states_controller_policy.rb 322 B

123456
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Controllers::TicketStatesControllerPolicy < Controllers::ApplicationControllerPolicy
  3. permit! %i[index show], to: ['ticket.agent', 'admin.ticket_state', 'ticket.customer']
  4. permit! %i[create update destroy], to: 'admin.ticket_state'
  5. end