Skip to content

Commit 305372e

Browse files
authored
fix enabling repo packages when projects are off (#20486)
1 parent ed6cd3c commit 305372e

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
@@ -476,7 +476,7 @@ func SettingsPost(ctx *context.Context) {
476476
deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects)
477477
}
478478

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

0 commit comments

Comments
 (0)