Hide notify mail setting ui if not enabled (#20138) (#20336)

Co-authored-by: 6543 <6543@obermui.de>
This commit is contained in:
Lunny Xiaoand6543 authored and GitHub committed 2022-07-13 09:47:29 +08:00
1 parent 26f4fe2b44
commit 66686f6d0e
2 files changed
+3

No files matched your search

+1
View File
@@ -34,6 +34,7 @@ func Account(ctx *context.Context) {
ctx.Data["Title"] = ctx.Tr("settings")
ctx.Data["PageIsSettingsAccount"] = true
ctx.Data["Email"] = ctx.Doer.Email
ctx.Data["EnableNotifyMail"] = setting.Service.EnableNotifyMail
loadAccountData(ctx)