summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-10 03:36:09 +0000
committerStan Hu <stanhu@gmail.com>2019-04-10 03:36:09 +0000
commitbcfd04a2210c88997332c069493fb008e5d39d90 (patch)
treed8cd629d0620db96e7dee28f59ac95b1ad9561db /app/finders
parent9d7ff90d9a7bd9dbe9184c9588510f247877274f (diff)
downloadgitlab-ce-bcfd04a2210c88997332c069493fb008e5d39d90.tar.gz
Revert "Merge branch 'sh-optimize-projects-api' into 'master'"revert-2cc01f12
This reverts merge request !26481
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/projects_finder.rb b/app/finders/projects_finder.rb
index 0319e95d439..93d3c991846 100644
--- a/app/finders/projects_finder.rb
+++ b/app/finders/projects_finder.rb
@@ -81,7 +81,7 @@ class ProjectsFinder < UnionFinder
if private_only?
current_user.authorized_projects
else
- Project.public_or_visible_to_user(current_user, params[:visibility_level])
+ Project.public_or_visible_to_user(current_user)
end
end
end