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

5 lines
251 B
Ruby
Raw Normal View History

class Controllers::TextModulesControllerPolicy < Controllers::ApplicationControllerPolicy
permit! %i[index show], to: ['ticket.agent', 'admin.text_module']
permit! %i[create update destroy import_example import_start], to: 'admin.text_module'
end