aboutsummaryrefslogtreecommitdiff
path: root/internal/route/repo/setting.go
diff options
context:
space:
mode:
authorᴜɴᴋɴᴡᴏɴ <u@gogs.io>2020-02-27 18:06:38 +0800
committerGitHub <noreply@github.com>2020-02-27 18:06:38 +0800
commit7950f2d17d97c37fca22b88d48056de1c00b4d77 (patch)
tree962531de3ff86417dc06cc4ece6eb22176fb5b8c /internal/route/repo/setting.go
parentcf3d55fa10f9b16d0ba996f8129f50743b2cd4ad (diff)
conf: overhaul auth and user settings (#5942)
* conf: overhaul auth and user settings * ci: update travis Go versions
Diffstat (limited to 'internal/route/repo/setting.go')
-rw-r--r--internal/route/repo/setting.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/route/repo/setting.go b/internal/route/repo/setting.go
index e1049cca..405ead4f 100644
--- a/internal/route/repo/setting.go
+++ b/internal/route/repo/setting.go
@@ -18,8 +18,8 @@ import (
"gogs.io/gogs/internal/context"
"gogs.io/gogs/internal/db"
"gogs.io/gogs/internal/db/errors"
- "gogs.io/gogs/internal/form"
"gogs.io/gogs/internal/email"
+ "gogs.io/gogs/internal/form"
"gogs.io/gogs/internal/tool"
)
@@ -398,7 +398,7 @@ func SettingsCollaborationPost(c *context.Context) {
return
}
- if conf.Service.EnableNotifyMail {
+ if conf.User.EnableEmailNotification {
email.SendCollaboratorMail(db.NewMailerUser(u), db.NewMailerUser(c.User), db.NewMailerRepo(c.Repo.Repository))
}