app/queries/decidim/assemblies/visible_assemblies.rb in decidim-assemblies-0.17.2 vs app/queries/decidim/assemblies/visible_assemblies.rb in decidim-assemblies-0.18.0

- old
+ new

@@ -7,17 +7,10 @@ def initialize(user) @user = user end def query - assemblies = Decidim::Assembly.all - - if @user - return assemblies if @user.admin - assemblies.visible_for(@user.id) - else - assemblies.public_spaces - end + Decidim::Assembly.visible_for(@user) end end end end