From 7950f2d17d97c37fca22b88d48056de1c00b4d77 Mon Sep 17 00:00:00 2001 From: ᴜɴᴋɴᴡᴏɴ Date: Thu, 27 Feb 2020 18:06:38 +0800 Subject: conf: overhaul auth and user settings (#5942) * conf: overhaul auth and user settings * ci: update travis Go versions --- internal/route/repo/setting.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/route/repo/setting.go') 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)) } -- cgit v1.2.3