aboutsummaryrefslogtreecommitdiffstats
path: root/routers/web/auth.go
diff options
context:
space:
mode:
authorwxiaoguang <wxiaoguang@gmail.com>2023-03-28 05:27:32 +0800
committerGitHub <noreply@github.com>2023-03-27 17:27:32 -0400
commit6706ac2a0f5f2fe4f8e2555be7e2a8b4d5946398 (patch)
tree2098ea5d2e81839f7d30840c460586da22c91572 /routers/web/auth.go
parent7e294ad9514198e47b2b32c608c162cee0e9192a (diff)
downloadgitea-6706ac2a0f5f2fe4f8e2555be7e2a8b4d5946398.tar.gz
gitea-6706ac2a0f5f2fe4f8e2555be7e2a8b4d5946398.zip
Fix profile page email display, respect settings (#23747)
Always respect the `setting.UI.ShowUserEmail` and `KeepEmailPrivate` setting. * It doesn't make sense to show user's own E-mail to themself. * Always hide the E-mail if KeepEmailPrivate=true, then the user could know how their profile page looks like for others. * Revert the `setting.UI.ShowUserEmail` change from #4981 . This setting is used to control the E-mail display, not only for the user list page. ps: the incorrect `<div .../>` tag on the profile page has been fixed by #23748 together, so this PR becomes simpler.
Diffstat (limited to 'routers/web/auth.go')
0 files changed, 0 insertions, 0 deletions