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

6 lines
284 B
Ruby

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class Controllers::EmailAddressesControllerPolicy < Controllers::ApplicationControllerPolicy
permit! %i[index show], to: ['ticket.agent', 'admin.channel_email']
default_permit!('admin.channel_email')
end