text_modules_controller_policy.rb 368 B

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