Commit 48b2563e authored by Matija Čupić's avatar Matija Čupić

Fix mixup with enabled/disabled in ClustersFinder

parent efc610d3
......@@ -9,9 +9,9 @@ class ClustersFinder
clusters = case @scope
when :all
project.clusters
when :disabled
project.clusters.enabled
when :enabled
project.clusters.enabled
when :disabled
project.clusters.disabled
end
clusters.map { |cluster| cluster.present(current_user: @user) }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment