summaryrefslogtreecommitdiff
path: root/app/finders/contributed_projects_finder.rb
diff options
context:
space:
mode:
authorFelipe Artur <felipefac@gmail.com>2016-03-16 21:23:59 -0300
committerFelipe Artur <felipefac@gmail.com>2016-03-16 21:23:59 -0300
commita18ac62756573a2da2c42ca50b6f30033be6fa63 (patch)
tree6f95ea299b1accf8cbc559478a59eeaeeb15d95b /app/finders/contributed_projects_finder.rb
parent44c127447b5a3cfc7aaea6f19e18baf9f42ad500 (diff)
downloadgitlab-ce-a18ac62756573a2da2c42ca50b6f30033be6fa63.tar.gz
Block internal groups/projects visibility to external users
Diffstat (limited to 'app/finders/contributed_projects_finder.rb')
-rw-r--r--app/finders/contributed_projects_finder.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/finders/contributed_projects_finder.rb b/app/finders/contributed_projects_finder.rb
index 0209649b017..4f7fe1c748b 100644
--- a/app/finders/contributed_projects_finder.rb
+++ b/app/finders/contributed_projects_finder.rb
@@ -11,7 +11,7 @@ class ContributedProjectsFinder
#
# Returns an ActiveRecord::Relation.
def execute(current_user = nil)
- if current_user
+ if current_user && !current_user.external?
relation = projects_visible_to_user(current_user)
else
relation = public_projects