Browse Source

Fix dashboard issue/pull request scoping

pull/3678/merge
Unknwon 8 years ago
parent
commit
f8fd084bd2
No known key found for this signature in database
GPG Key ID: 7A02C406FAC875A2
  1. 2
      routers/user/home.go

2
routers/user/home.go

@ -202,7 +202,6 @@ func Issues(ctx *context.Context) {
userRepoIDs []int64 userRepoIDs []int64
showRepos = make([]*models.Repository, 0, 10) showRepos = make([]*models.Repository, 0, 10)
) )
if filterMode == models.FILTER_MODE_YOUR_REPOS {
if ctxUser.IsOrganization() { if ctxUser.IsOrganization() {
repos, _, err = ctxUser.GetUserRepositories(ctx.User.ID, 1, ctxUser.NumRepos) repos, _, err = ctxUser.GetUserRepositories(ctx.User.ID, 1, ctxUser.NumRepos)
if err != nil { if err != nil {
@ -233,6 +232,7 @@ func Issues(ctx *context.Context) {
} }
userRepoIDs = append(userRepoIDs, repo.ID) userRepoIDs = append(userRepoIDs, repo.ID)
if filterMode == models.FILTER_MODE_YOUR_REPOS {
showRepos = append(showRepos, repo) showRepos = append(showRepos, repo)
} }
} }

Loading…
Cancel
Save