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