1
1
mirror of https://github.com/go-gitea/gitea synced 2025-08-17 23:18:28 +00:00

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

Backport #20138
This commit is contained in:
Lunny Xiao
2022-07-13 01:13:31 +08:00
committed by GitHub
parent 0f89417d75
commit 6b7e860b0f
2 changed files with 3 additions and 0 deletions

View File

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