trabajo-afectivo/app/policies/user_device_policy.rb

8 lines
190 B
Ruby
Raw Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class UserDevicePolicy < ApplicationPolicy
def log?
user&.permissions?('user_preferences.device')
end
end