aboutsummaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorNorwin <noerw@users.noreply.github.com>2022-07-26 16:34:14 +0200
committerGitHub <noreply@github.com>2022-07-26 16:34:14 +0200
commit305372efe397e3b0af4ae5a30f8bd2f30c68ffcf (patch)
tree418789bd09163979517f7953a49bad3e32d5f051 /routers
parented6cd3cbb7cf42086ddb049a22b8f4604f445113 (diff)
downloadgitea-305372efe397e3b0af4ae5a30f8bd2f30c68ffcf.tar.gz
gitea-305372efe397e3b0af4ae5a30f8bd2f30c68ffcf.zip
fix enabling repo packages when projects are off (#20486)
Diffstat (limited to 'routers')
-rw-r--r--routers/web/repo/setting.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/web/repo/setting.go b/routers/web/repo/setting.go
index 5ded0561c6..7f6b0feafb 100644
--- a/routers/web/repo/setting.go
+++ b/routers/web/repo/setting.go
@@ -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,