From d14d0d96a22165067a150ba489b61cafb60c3093 Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Thu, 24 Aug 2023 01:39:29 +0000 Subject: [PATCH 1/2] fix --- routers/web/user/home.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index d1a4877e6d4b6..eff5831670467 100644 --- a/routers/web/user/home.go +++ b/routers/web/user/home.go @@ -448,8 +448,8 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) { // - Team org's owns the repository. // - Team has read permission to repository. repoOpts := &repo_model.SearchRepoOptions{ - Actor: ctx.Doer, - OwnerID: ctx.Doer.ID, + Actor: ctxUser, + OwnerID: ctxUser.ID, Private: true, AllPublic: false, AllLimited: false, From f5dd6b5072551c6001e26f7169ee756ad6de4cfc Mon Sep 17 00:00:00 2001 From: yp05327 <576951401@qq.com> Date: Mon, 28 Aug 2023 01:18:33 +0000 Subject: [PATCH 2/2] fix bug --- routers/web/user/home.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/routers/web/user/home.go b/routers/web/user/home.go index eff5831670467..c44e5a50af2be 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 @@ -448,7 +448,7 @@ func buildIssueOverview(ctx *context.Context, unitType unit.Type) { // - Team org's owns the repository. // - Team has read permission to repository. repoOpts := &repo_model.SearchRepoOptions{ - Actor: ctxUser, + Actor: ctx.Doer, OwnerID: ctxUser.ID, Private: true, AllPublic: false,