mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-09-06 22:33:14 +00:00
Allow package linking to private repository (#19348)
* Display private repos too. * lint Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
This commit is contained in:
parent
d906858847
commit
c003491cfb
1 changed files with 2 additions and 1 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue