mirror of
https://github.com/go-gitea/gitea
synced 2025-07-23 02:38:35 +00:00
Hide private repositories in packages (#19584)
This commit is contained in:
@@ -62,6 +62,7 @@ func Packages(ctx *context.Context) {
|
||||
ctx.Data["HasPackages"] = hasPackages
|
||||
ctx.Data["PackageDescriptors"] = pds
|
||||
ctx.Data["Total"] = total
|
||||
ctx.Data["RepositoryAccessMap"] = map[int64]bool{ctx.Repo.Repository.ID: true} // There is only the current repository
|
||||
|
||||
pager := context.NewPagination(int(total), setting.UI.PackagesPagingNum, page, 5)
|
||||
pager.AddParam(ctx, "q", "Query")
|
||||
|
Reference in New Issue
Block a user