app/permissions/decidim/votings/permissions.rb in decidim-elections-0.26.10 vs app/permissions/decidim/votings/permissions.rb in decidim-elections-0.27.0.rc1

- old
+ new

@@ -25,15 +25,13 @@ def allowed_public_anonymous_action? return unless permission_action.action == :read return unless permission_action.scope == :public case permission_action.subject - when :votings + when :votings, :participatory_space allow! when :voting toggle_allow(voting.published? || user&.admin?) - when :participatory_space - allow! end end def admin_scope? permission_action.scope == :admin || permission_action.subject == :admin_dashboard