From 071f05e7e736e159e5697c21e9aa8dff03dd800b Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Fri, 8 Apr 2022 10:23:44 +0000 Subject: [PATCH 1/2] Display private repos too. --- routers/web/user/package.go | 1 + 1 file changed, 1 insertion(+) diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 7fecf9e76880c..0a38df2615679 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -260,6 +260,7 @@ func PackageSettings(ctx *context.Context) { repos, _, _ := models.GetUserRepositories(&models.SearchRepoOptions{ Actor: pd.Owner, + Private: true, }) ctx.Data["Repos"] = repos ctx.Data["CanWritePackages"] = ctx.Package.AccessMode >= perm.AccessModeWrite || ctx.IsUserSiteAdmin() From fb5778aa552a01d99bb0ac24cdd0787c56d5f6c6 Mon Sep 17 00:00:00 2001 From: KN4CK3R Date: Fri, 8 Apr 2022 10:38:06 +0000 Subject: [PATCH 2/2] lint --- routers/web/user/package.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 0a38df2615679..04b4e1e8ecd6c 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -259,7 +259,7 @@ func PackageSettings(ctx *context.Context) { ctx.Data["PackageDescriptor"] = pd repos, _, _ := models.GetUserRepositories(&models.SearchRepoOptions{ - Actor: pd.Owner, + Actor: pd.Owner, Private: true, }) ctx.Data["Repos"] = repos