mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-25 00:44:15 -05:00
fix enabling repo packages when projects are off (#20486)
This commit is contained in:
parent
ed6cd3cbb7
commit
305372efe3
1 changed files with 1 additions and 1 deletions
|
@ -476,7 +476,7 @@ func SettingsPost(ctx *context.Context) {
|
||||||
deleteUnitTypes = append(deleteUnitTypes, unit_model.TypeProjects)
|
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{
|
units = append(units, repo_model.RepoUnit{
|
||||||
RepoID: repo.ID,
|
RepoID: repo.ID,
|
||||||
Type: unit_model.TypePackages,
|
Type: unit_model.TypePackages,
|
||||||
|
|
Loading…
Reference in a new issue