aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web
diff options
context:
space:
mode:
authorLunny Xiao <xiaolunwen@gmail.com>2022-06-28 00:59:47 +0800
committerGitHub <noreply@github.com>2022-06-28 00:59:47 +0800
commit85d960d2a10ce6db4dd4e05f7831ff3b33beee65 (patch)
treec23202c6a324456a984881bc5caa142160833b6b /routers/web
parent81eda36285e1a6a2fb98201655d86114e75a74ef (diff)
downloadgitea-85d960d2a10ce6db4dd4e05f7831ff3b33beee65.tar.gz
gitea-85d960d2a10ce6db4dd4e05f7831ff3b33beee65.zip
Hide notify mail setting ui if not enabled (#20138)
Diffstat (limited to 'routers/web')
-rw-r--r--routers/web/user/setting/account.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/routers/web/user/setting/account.go b/routers/web/user/setting/account.go
index cc59524fd1..dfade13a1c 100644
--- a/routers/web/user/setting/account.go
+++ b/routers/web/user/setting/account.go
@@ -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)