Skip to content

Commit

Permalink
Fix context filter has no effect in dashboard (#26695) (#26811)
Browse files Browse the repository at this point in the history
Backport #26695
  • Loading branch information
yp05327 committed Aug 30, 2023
1 parent 54cc459 commit c72f606
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 @@ -156,7 +156,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 @@ -437,7 +437,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 c72f606

Please sign in to comment.