Class: ProxES::AuditLogPolicy::Scope
- Inherits:
-
ProxES::ApplicationPolicy::Scope
- Object
- ProxES::ApplicationPolicy::Scope
- ProxES::AuditLogPolicy::Scope
- Defined in:
- lib/proxes/policies/audit_log_policy.rb
Instance Attribute Summary
Attributes inherited from ProxES::ApplicationPolicy::Scope
Instance Method Summary collapse
Methods inherited from ProxES::ApplicationPolicy::Scope
Constructor Details
This class inherits a constructor from ProxES::ApplicationPolicy::Scope
Instance Method Details
#resolve ⇒ Object
32 33 34 35 36 37 38 |
# File 'lib/proxes/policies/audit_log_policy.rb', line 32 def resolve if user && user.super_admin? scope else scope.where(id: -1) end end |