Skip to content

Commit

Permalink
Allow package linking to private repository (go-gitea#19348)
Browse files Browse the repository at this point in the history
* Display private repos too.

* lint

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
  • Loading branch information
2 people authored and AbdulrhmnGhanem committed Aug 23, 2022
1 parent 0da19da commit ddb413e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion routers/web/user/package.go
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down

0 comments on commit ddb413e

Please sign in to comment.