Skip to content

Commit

Permalink
fix enabling repo packages when projects are off (go-gitea#20486)
Browse files Browse the repository at this point in the history
  • Loading branch information
noerw authored and Sysoev, Vladimir committed Aug 10, 2022
1 parent 7e07210 commit 9c3e8c3
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 9c3e8c3

Please sign in to comment.