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

5 lines
237 B
Ruby
Raw Normal View History

class Controllers::TicketPrioritiesControllerPolicy < Controllers::ApplicationControllerPolicy
permit! %i[index show], to: ['ticket.agent', 'admin.object', 'ticket.customer']
permit! %i[create update destroy], to: 'admin.object'
end