0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-26 04:54:24 +01:00

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

Fix #26686
This commit is contained in:
yp05327 2023-08-29 21:46:52 +09:00 committed by GitHub
parent 008f5d8cf1
commit 915cabdb14
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

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