Class: Decidim::Consultations::Permissions
- Inherits:
-
DefaultPermissions
- Object
- DefaultPermissions
- Decidim::Consultations::Permissions
- Defined in:
- app/permissions/decidim/consultations/permissions.rb
Instance Method Summary collapse
Instance Method Details
#permissions ⇒ Object
6 7 8 9 10 11 12 13 14 15 16 17 18 |
# File 'app/permissions/decidim/consultations/permissions.rb', line 6 def allowed_public_anonymous_action? return unless user allowed_public_action? return Decidim::Consultations::Admin::Permissions.new(user, , context). if .scope == :admin end |