Fixed organisation dashboard, now private repositories are listed too

master
ByteList 2019-02-01 12:01:11 +01:00
parent 84024eb898
commit 0838094983
2 changed files with 1 additions and 2 deletions

View File

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

View File

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