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

5 lines
233 B
Ruby
Raw Normal View History

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