Skip to content

Commit c003491

Browse files
KN4CK3Rlunny
andauthored
Allow package linking to private repository (#19348)
* Display private repos too. * lint Co-authored-by: Lunny Xiao <[email protected]>
1 parent d906858 commit c003491

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/web/user/package.go

+2-1
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)