@@ -19,6 +19,7 @@ import (
1919 packages_module "code.gitea.io/gitea/modules/packages"
2020 helm_module "code.gitea.io/gitea/modules/packages/helm"
2121 "code.gitea.io/gitea/modules/setting"
22+ "code.gitea.io/gitea/modules/util"
2223 "code.gitea.io/gitea/routers/api/packages/helper"
2324 packages_service "code.gitea.io/gitea/services/packages"
2425
@@ -39,8 +40,9 @@ func apiError(ctx *context.Context, status int, obj interface{}) {
3940// Index generates the Helm charts index
4041func Index (ctx * context.Context ) {
4142 pvs , _ , err := packages_model .SearchVersions (ctx , & packages_model.PackageSearchOptions {
42- OwnerID : ctx .Package .Owner .ID ,
43- Type : packages_model .TypeHelm ,
43+ OwnerID : ctx .Package .Owner .ID ,
44+ Type : packages_model .TypeHelm ,
45+ IsInternal : util .OptionalBoolFalse ,
4446 })
4547 if err != nil {
4648 apiError (ctx , http .StatusInternalServerError , err )
@@ -108,6 +110,7 @@ func DownloadPackageFile(ctx *context.Context) {
108110 Value : ctx .Params ("package" ),
109111 },
110112 HasFileWithName : filename ,
113+ IsInternal : util .OptionalBoolFalse ,
111114 })
112115 if err != nil {
113116 apiError (ctx , http .StatusInternalServerError , err )
0 commit comments