diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2022-06-28 00:59:47 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 00:59:47 +0800 |
commit | 85d960d2a10ce6db4dd4e05f7831ff3b33beee65 (patch) | |
tree | c23202c6a324456a984881bc5caa142160833b6b /routers/web | |
parent | 81eda36285e1a6a2fb98201655d86114e75a74ef (diff) | |
download | gitea-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.go | 1 |
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) |