Class: Decidim::Votings::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Votings::Permissions
- Defined in:
- app/permissions/decidim/votings/permissions.rb
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 |
# File 'app/permissions/decidim/votings/permissions.rb', line 6 def allowed_public_anonymous_action? return unless user return Decidim::Votings::Admin::Permissions.new(user, , context). if admin_scope? # Delegate the polling_officer_zone permission checks to the polling officer zone permissions class return Decidim::Votings::PollingOfficerZone::Permissions.new(user, , context). if .scope == :polling_officer_zone end |