Class: Locomotive::SitePolicy::Scope
- Inherits:
-
ApplicationPolicy::Scope
- Object
- ApplicationPolicy::Scope
- Locomotive::SitePolicy::Scope
- Defined in:
- app/policies/locomotive/site_policy.rb
Instance Attribute Summary
Attributes inherited from ApplicationPolicy::Scope
Instance Method Summary collapse
Methods inherited from ApplicationPolicy::Scope
Constructor Details
This class inherits a constructor from Locomotive::ApplicationPolicy::Scope
Instance Method Details
#resolve ⇒ Object
6 7 8 9 10 11 12 |
# File 'app/policies/locomotive/site_policy.rb', line 6 def resolve if membership.account.super_admin? scope.all else membership.account.sites end end |