Skip to content

Commit c72f606

Browse files
authored
Fix context filter has no effect in dashboard (#26695) (#26811)
Backport #26695
1 parent 54cc459 commit c72f606

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
@@ -156,7 +156,7 @@ func Milestones(ctx *context.Context) {
156156
}
157157

158158
repoOpts := repo_model.SearchRepoOptions{
159-
Actor: ctxUser,
159+
Actor: ctx.Doer,
160160
OwnerID: ctxUser.ID,
161161
Private: true,
162162
AllPublic: false, // Include also all public repositories of users and public organisations
@@ -437,7 +437,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
437437
// - Team has read permission to repository.
438438
repoOpts := &repo_model.SearchRepoOptions{
439439
Actor: ctx.Doer,
440-
OwnerID: ctx.Doer.ID,
440+
OwnerID: ctxUser.ID,
441441
Private: true,
442442
AllPublic: false,
443443
AllLimited: false,

0 commit comments

Comments
 (0)