Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2019-04-10 06:36:09 +0300
committerStan Hu <stanhu@gmail.com>2019-04-10 06:36:09 +0300
commitbcfd04a2210c88997332c069493fb008e5d39d90 (patch)
treed8cd629d0620db96e7dee28f59ac95b1ad9561db /app/finders/projects_finder.rb
parent9d7ff90d9a7bd9dbe9184c9588510f247877274f (diff)
Revert "Merge branch 'sh-optimize-projects-api' into 'master'"
This reverts merge request !26481
Diffstat (limited to 'app/finders/projects_finder.rb')
-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