Class: Decidim::Accountability::Admin::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Accountability::Admin::Permissions
- Defined in:
- decidim-accountability/app/permissions/decidim/accountability/admin/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
7 8 9 10 11 12 13 14 15 16 |
# File 'decidim-accountability/app/permissions/decidim/accountability/admin/permissions.rb', line 7 def return if .scope != :admin .allow! if can_perform_actions_on?(:result, result) .allow! if can_perform_actions_on?(:status, status) .allow! if can_perform_actions_on?(:timeline_entry, timeline_entry) .allow! if can_perform_actions_on?(:import_projects, nil) end |