Skip to content

Commit

Permalink
Fix context filter has no effect in dashboard (#26695)
Browse files Browse the repository at this point in the history
Fix #26686
  • Loading branch information
yp05327 authored Aug 29, 2023
1 parent 008f5d8 commit 915cabd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions routers/web/user/home.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ func Milestones(ctx *context.Context) {
}

repoOpts := repo_model.SearchRepoOptions{
Actor: ctxUser,
Actor: ctx.Doer,
OwnerID: ctxUser.ID,
Private: true,
AllPublic: false, // Include also all public repositories of users and public organisations
Expand Down Expand Up @@ -449,7 +449,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) {
// - Team has read permission to repository.
repoOpts := &repo_model.SearchRepoOptions{
Actor: ctx.Doer,
OwnerID: ctx.Doer.ID,
OwnerID: ctxUser.ID,
Private: true,
AllPublic: false,
AllLimited: false,
Expand Down

0 comments on commit 915cabd

Please sign in to comment.