Skip to content

Commit

Permalink
List only amendable ideas
Browse files Browse the repository at this point in the history
  • Loading branch information
ahukkanen committed Mar 7, 2024
1 parent 605bebe commit 6715161
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/decidim/ideas/ideas_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ def users_idea_limit_reached?
end

def search_collection
Idea.where(component: current_component).not_hidden.with_availability(params[:filter].try(:[], :with_availability))
Idea.where(component: current_component).not_hidden.only_amendables.with_availability(params[:filter].try(:[], :with_availability))
end

def default_filter_params
Expand Down

0 comments on commit 6715161

Please sign in to comment.