summaryrefslogtreecommitdiff
path: root/app/finders
diff options
context:
space:
mode:
authorZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-14 22:06:23 +0100
committerZeger-Jan van de Weg <zegerjan@gitlab.com>2016-03-14 22:06:23 +0100
commitab418e27a9121704d623343417126b0bdae08e79 (patch)
tree2827db700413571153b43a0e114d62a41596c287 /app/finders
parent88f8d3a4d6521d1001bcea83c2fb7b7c4fe15f37 (diff)
downloadgitlab-ce-ab418e27a9121704d623343417126b0bdae08e79.tar.gz
Improve external users feature
Diffstat (limited to 'app/finders')
-rw-r--r--app/finders/projects_finder.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/finders/projects_finder.rb b/app/finders/projects_finder.rb
index 70c073f7d5c..3a5fc5b5907 100644
--- a/app/finders/projects_finder.rb
+++ b/app/finders/projects_finder.rb
@@ -47,9 +47,9 @@ class ProjectsFinder
group.shared_projects.visible_to_user(current_user)
]
if current_user.external?
- user_group_projects.push(group.projects.public_only)
+ user_group_projects << group.projects.public_only
else
- user_group_projects.push(group.projects.public_and_internal_only)
+ user_group_projects << group.projects.public_and_internal_only
end
end