Make SHOW_USER_EMAIL also apply to profiles (#2258)

The e-mail address is currently only hidden from the explore page.
This commit is contained in:
Michael Kuhn 2017-08-17 11:08:03 +02:00 committed by Lunny Xiao
parent 7907786040
commit 934dd41fa6
3 changed files with 73 additions and 1 deletions

View file

@ -219,6 +219,8 @@ func Profile(ctx *context.Context) {
}
}
ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail
ctx.HTML(200, tplProfile)
}