# frozen_string_literal: true module Decidim module Assemblies # This query class filters assemblies given a current_user. class VisibleAssemblies < Decidim::Query def initialize(user) @user = user end def query Decidim::Assembly.visible_for(@user) end end end end