templates_controller_policy.rb 270 B

123456
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class Controllers::TemplatesControllerPolicy < Controllers::ApplicationControllerPolicy
  3. default_permit!('admin.template')
  4. permit! %i[index show], to: ['admin.template', 'ticket.agent']
  5. end