]> source.dussan.org Git - gitea.git/commitdiff
Fix context filter has no effect in dashboard (#26695) (#26811)
authoryp05327 <576951401@qq.com>
Wed, 30 Aug 2023 11:14:54 +0000 (20:14 +0900)
committerGitHub <noreply@github.com>
Wed, 30 Aug 2023 11:14:54 +0000 (11:14 +0000)
Backport #26695

routers/web/user/home.go

index 8cb1b62974c92bbb018d8fdcd242d2fdb13f85ba..3a7630fb32ba001f60d616ae33e06620c2230114 100644 (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,