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

5 lines
227 B
Ruby
Raw Normal View History

class Controllers::UsersControllerPolicy < Controllers::ApplicationControllerPolicy
permit! %i[import_example import_start], to: 'admin.user'
permit! %i[search history create update], to: ['ticket.agent', 'admin.user']
end