summaryrefslogtreecommitdiffstats
path: root/routers/user/profile.go
diff options
context:
space:
mode:
Diffstat (limited to 'routers/user/profile.go')
-rw-r--r--routers/user/profile.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/user/profile.go b/routers/user/profile.go
index b1daa9e496..03f88e256a 100644
--- a/routers/user/profile.go
+++ b/routers/user/profile.go
@@ -237,7 +237,7 @@ func Profile(ctx *context.Context) {
}
}
- ctx.Data["ShowUserEmail"] = setting.UI.ShowUserEmail
+ ctx.Data["ShowUserEmail"] = len(ctxUser.Email) > 0 && ctx.IsSigned && (!ctxUser.KeepEmailPrivate || ctxUser.ID == ctx.User.ID)
ctx.HTML(200, tplProfile)
}