Exclude forks from profile contributions list.

This commit is contained in:
Douwe Maan 2015-02-24 16:28:23 +01:00
parent 6b0199ffc1
commit 1bf9fa8c7f
1 changed files with 3 additions and 1 deletions

View File

@ -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)