mirror of
https://github.com/go-gitea/gitea
synced 2024-12-22 08:17:57 +01: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
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user