email_addresses_controller_policy.rb 285 B

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