Skip to content

Commit ddb413e

Browse files
KN4CK3Rlunny
authored andcommitted
Allow package linking to private repository (go-gitea#19348)
* Display private repos too. * lint Co-authored-by: Lunny Xiao <[email protected]>
1 parent 0da19da commit ddb413e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/user/package.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -259,7 +259,8 @@ func PackageSettings(ctx *context.Context) {
259259
ctx.Data["PackageDescriptor"] = pd
260260

261261
repos, _, _ := models.GetUserRepositories(&models.SearchRepoOptions{
262-
Actor: pd.Owner,
262+
Actor: pd.Owner,
263+
Private: true,
263264
})
264265
ctx.Data["Repos"] = repos
265266
ctx.Data["CanWritePackages"] = ctx.Package.AccessMode >= perm.AccessModeWrite || ctx.IsUserSiteAdmin()

0 commit comments

Comments
 (0)