summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorDouwe Maan <douwe@selenight.nl>2017-02-06 20:32:34 -0600
committerDouwe Maan <douwe@selenight.nl>2017-02-06 21:02:07 -0600
commitffcbc636930ab4d844da7677ab8439d0ede5f12f (patch)
tree9d6cf0d26104ef2e02bda10db30bffa0e26ed3d0 /app/finders
parent87cdb156ce51a1300f833c633b802b9be5c980d0 (diff)
downloadgitlab-ce-ffcbc636930ab4d844da7677ab8439d0ede5f12f.tar.gz
List all groups/projects for admins on explore pages
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/group_projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/group_projects_finder.rb b/app/finders/group_projects_finder.rb
index aa8f4c1d0e4..3b9a421b118 100644
--- a/app/finders/group_projects_finder.rb
+++ b/app/finders/group_projects_finder.rb
@@ -18,7 +18,7 @@ class GroupProjectsFinder < UnionFinder
projects = []
if current_user
- if @group.users.include?(current_user) || current_user.admin?
+ if @group.users.include?(current_user)
projects << @group.projects unless only_shared
projects << @group.shared_projects unless only_owned
else