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