From 083809498309f5afe290de1e46272661ece0abb9 Mon Sep 17 00:00:00 2001 From: ByteList Date: Fri, 1 Feb 2019 12:01:11 +0100 Subject: [PATCH] Fixed organisation dashboard, now private repositories are listed too --- models/action.go | 1 - models/org.go | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/models/action.go b/models/action.go index 661af4550..5dc0eb18e 100644 --- a/models/action.go +++ b/models/action.go @@ -866,7 +866,6 @@ func GetFeeds(opts GetFeedsOptions) ([]*Action, error) { } cond = cond.And(builder.In("repo_id", repoIDs)) - fmt.Println("repoIDs: ", repoIDs) } cond = cond.And(builder.Eq{"user_id": opts.RequestedUser.ID}) diff --git a/models/org.go b/models/org.go index 54f144184..84ed36a2b 100644 --- a/models/org.go +++ b/models/org.go @@ -651,7 +651,7 @@ func (org *User) accessibleReposEnv(e Engine, userID int64) (AccessibleReposEnvi func (env *accessibleReposEnv) cond() builder.Cond { var cond builder.Cond = builder.Eq{ "`repository`.owner_id": env.org.ID, - //"`repository`.is_private": false, + //"`repository`.is_private": false, // WSE changed } if len(env.teamIDs) > 0 { cond = cond.Or(builder.In("team_repo.team_id", env.teamIDs))