Browse Source

fix enabling repo packages when projects are off (#20486)

tags/v1.18.0-rc0
Norwin 1 year ago
parent
commit
305372efe3
No account linked to committer's email address
1 changed files with 1 additions and 1 deletions
  1. 1
    1
      routers/web/repo/setting.go

+ 1
- 1
routers/web/repo/setting.go View File

@@ -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,

Loading…
Cancel
Save