Skip to content

Commit 915cabd

Browse files
authored
Fix context filter has no effect in dashboard (#26695)
Fix #26686
1 parent 008f5d8 commit 915cabd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

routers/web/user/home.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ func Milestones(ctx *context.Context) {
157157
}
158158

159159
repoOpts := repo_model.SearchRepoOptions{
160-
Actor: ctxUser,
160+
Actor: ctx.Doer,
161161
OwnerID: ctxUser.ID,
162162
Private: true,
163163
AllPublic: false, // Include also all public repositories of users and public organisations
@@ -449,7 +449,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
449449
// - Team has read permission to repository.
450450
repoOpts := &repo_model.SearchRepoOptions{
451451
Actor: ctx.Doer,
452-
OwnerID: ctx.Doer.ID,
452+
OwnerID: ctxUser.ID,
453453
Private: true,
454454
AllPublic: false,
455455
AllLimited: false,

0 commit comments

Comments
 (0)