app/permissions/decidim/consultations/permissions.rb in decidim-consultations-0.26.10 vs app/permissions/decidim/consultations/permissions.rb in decidim-consultations-0.27.0.rc1
- old
+ new
@@ -34,17 +34,15 @@
def allowed_public_anonymous_action?
return unless permission_action.action == :read
return unless permission_action.scope == :public
case permission_action.subject
- when :consultation_list
+ when :consultation_list, :participatory_space
allow!
when :consultation
toggle_allow(consultation.published? || user&.admin?)
when :question
toggle_allow(question.published? || user&.admin?)
- when :participatory_space
- allow!
end
end
def allowed_public_action?
return unless permission_action.scope == :public