Commit 1bf9fa8c authored by Douwe Maan's avatar Douwe Maan

Exclude forks from profile contributions list.

parent 6b0199ff
...@@ -6,7 +6,9 @@ class UsersController < ApplicationController ...@@ -6,7 +6,9 @@ class UsersController < ApplicationController
def show def show
@contributed_projects = Project. @contributed_projects = Project.
where(id: authorized_projects_ids & @user.contributed_projects_ids). 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. @projects = @user.personal_projects.
where(id: authorized_projects_ids).includes(:namespace) where(id: authorized_projects_ids).includes(:namespace)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment