Class: Decidim::Accountability::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Accountability::Permissions
- Defined in:
- app/permissions/decidim/accountability/permissions.rb
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
6 7 8 9 10 11 12 13 |
# File 'app/permissions/decidim/accountability/permissions.rb', line 6 def return unless user # Delegate the admin permission checks to the admin permissions class return Decidim::Accountability::Admin::Permissions.new(user, , context). if .scope == :admin end |