user_device_policy.rb 191 B

1234567
  1. # Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/
  2. class UserDevicePolicy < ApplicationPolicy
  3. def log?
  4. user&.permissions?('user_preferences.device')
  5. end
  6. end