summaryrefslogtreecommitdiffstats
path: root/routers/repo/release.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/repo/release.go')
-rw-r--r--routers/repo/release.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/release.go b/routers/repo/release.go
index 02fbcaccaf..c93c8f5d61 100644
--- a/routers/repo/release.go
+++ b/routers/repo/release.go
@@ -212,7 +212,7 @@ func NewReleasePost(ctx *context.Context, form auth.NewReleaseForm) {
}
var attachmentUUIDs []string
- if setting.AttachmentEnabled {
+ if setting.Attachment.Enabled {
attachmentUUIDs = form.Files
}
@@ -333,7 +333,7 @@ func EditReleasePost(ctx *context.Context, form auth.EditReleaseForm) {
}
var attachmentUUIDs []string
- if setting.AttachmentEnabled {
+ if setting.Attachment.Enabled {
attachmentUUIDs = form.Files
}