aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/user
diff options
context:
space:
mode:
authoryp05327 <576951401@qq.com>2023-08-29 21:46:52 +0900
committerGitHub <noreply@github.com>2023-08-29 12:46:52 +0000
commit915cabdb14450ea5dcfc74ec55bb22d8cb0f29b1 (patch)
tree7e18d20a2d5d3aff5b67232262b90df8e596ef91 /routers/web/user
parent008f5d8cf1c40b96f43b19ecf48240fc4b86e3f0 (diff)
downloadgitea-915cabdb14450ea5dcfc74ec55bb22d8cb0f29b1.tar.gz
gitea-915cabdb14450ea5dcfc74ec55bb22d8cb0f29b1.zip
Fix context filter has no effect in dashboard (#26695)
Fix #26686
Diffstat (limited to 'routers/web/user')
-rw-r--r--routers/web/user/home.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/web/user/home.go b/routers/web/user/home.go
index d1a4877e6d..c44e5a50af 100644
--- a/routers/web/user/home.go
+++ b/routers/web/user/home.go
@@ -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,