Fixed organisation dashboard, now private repositories are listed too
This commit is contained in:
@@ -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})
|
||||
|
||||
+1
-1
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user