sessions_controller_policy.rb 278 B

123456
  1. # Copyright (C) 2012-2024 Zammad Foundation, https://zammad-foundation.org/
  2. class Controllers::SessionsControllerPolicy < Controllers::ApplicationControllerPolicy
  3. permit! :switch_to_user, to: ['admin.session', 'admin.user']
  4. permit! %i[list delete], to: 'admin.session'
  5. end