From: yp05327 <576951401@qq.com> Date: Wed, 30 Aug 2023 11:14:54 +0000 (+0900) Subject: Fix context filter has no effect in dashboard (#26695) (#26811) X-Git-Tag: v1.20.4~12 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=c72f6067b361f55a1e075e158c5897416cf90d57;p=gitea.git Fix context filter has no effect in dashboard (#26695) (#26811) Backport #26695 --- diff --git a/routers/web/user/home.go b/routers/web/user/home.go index 8cb1b62974..3a7630fb32 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -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,