summaryrefslogtreecommitdiff
path: root/app/finders/contributed_projects_finder.rb
diff options
context:
space:
mode:
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