Skip to content

Commit

Permalink
fix enabling repo packages when projects are off (#20486)
Browse files Browse the repository at this point in the history
  • Loading branch information
noerw authored Jul 26, 2022
1 parent ed6cd3c commit 305372e
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 @@ -476,7 +476,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 305372e

Please sign in to comment.