Fix context filter has no effect in dashboard (#26695) (#26811)

Backport #26695

(cherry picked from commit c72f6067b3)
This commit is contained in:
yp05327 2023-08-30 20:14:54 +09:00 committed by Earl Warren
parent 833cf722ab
commit a6c2201dd4
No known key found for this signature in database
GPG key ID: 0579CB2928A78A00

View file

@ -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
@ -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,