diff options
author | Douwe Maan <douwe@gitlab.com> | 2015-02-24 16:28:23 +0100 |
---|---|---|
committer | Douwe Maan <douwe@gitlab.com> | 2015-02-24 16:28:23 +0100 |
commit | 1bf9fa8c7fc027b5273c143949e57eac9bef52a4 (patch) | |
tree | 1f169721a8e06951c8f8189b7e496180a4b96c21 /app/controllers/users_controller.rb | |
parent | 6b0199ffc1c8e6a79b68a510052a1d1713afc29d (diff) | |
download | gitlab-ce-1bf9fa8c7fc027b5273c143949e57eac9bef52a4.tar.gz |
Exclude forks from profile contributions list.
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 4c2fe4c3c8d..8a13394dbac 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -6,7 +6,9 @@ class UsersController < ApplicationController def show @contributed_projects = Project. where(id: authorized_projects_ids & @user.contributed_projects_ids). - in_group_namespace.includes(:namespace) + in_group_namespace. + includes(:namespace). + reject(&:forked?) @projects = @user.personal_projects. where(id: authorized_projects_ids).includes(:namespace) |