Skip to content

Commit

Permalink
fix enabling repo packages when projects are off (#20486) (#20488)
Browse files Browse the repository at this point in the history
  • Loading branch information
noerw authored Jul 26, 2022
1 parent 2fe0dab commit 435038b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routers/web/repo/setting.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ func SettingsPost(ctx *context.Context) {
deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects)
}

if form.EnablePackages && !unit_model.TypeProjects.UnitGlobalDisabled() {
if form.EnablePackages && !unit_model.TypePackages.UnitGlobalDisabled() {
units = append(units, repo_model.RepoUnit{
RepoID: repo.ID,
Type: unit_model.TypePackages,
Expand Down

0 comments on commit 435038b

Please sign in to comment.