trabajo-afectivo/app/policies/sessions_policy.rb

8 lines
182 B
Ruby
Raw Permalink Normal View History

# Copyright (C) 2012-2021 Zammad Foundation, http://zammad-foundation.org/
class SessionsPolicy < ApplicationPolicy
def impersonate?
user.permissions?('admin.user')
end
end