Skip to content

Commit 435038b

Browse files
authored
fix enabling repo packages when projects are off (#20486) (#20488)
1 parent 2fe0dab commit 435038b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

routers/web/repo/setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -474,7 +474,7 @@ func SettingsPost(ctx *context.Context) {
474474
deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects)
475475
}
476476

477-
if form.EnablePackages && !unit_model.TypeProjects.UnitGlobalDisabled() {
477+
if form.EnablePackages && !unit_model.TypePackages.UnitGlobalDisabled() {
478478
units = append(units, repo_model.RepoUnit{
479479
RepoID: repo.ID,
480480
Type: unit_model.TypePackages,

0 commit comments

Comments
 (0)