diff options
author | KN4CK3R <admin@oldschoolhack.me> | 2022-04-09 17:57:37 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-04-09 17:57:37 +0200 |
commit | c003491cfbc1bd472673479129c7e690f53d7639 (patch) | |
tree | c830c13d3b6e0a0d2b9265b0d38133313f0ee959 /routers/web/user | |
parent | Use "main" as default branch name (#19354) (diff) | |
download | forgejo-c003491cfbc1bd472673479129c7e690f53d7639.tar.xz forgejo-c003491cfbc1bd472673479129c7e690f53d7639.zip |
Allow package linking to private repository (#19348)
* Display private repos too.
* lint
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'routers/web/user')
-rw-r--r-- | routers/web/user/package.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/routers/web/user/package.go b/routers/web/user/package.go index 7fecf9e768..04b4e1e8ec 100644 --- a/routers/web/user/package.go +++ b/routers/web/user/package.go @@ -259,7 +259,8 @@ 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 ctx.Data["CanWritePackages"] = ctx.Package.AccessMode >= perm.AccessModeWrite || ctx.IsUserSiteAdmin() |