summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-31 13:53:14 +0800
committerUnknwon <u@gogs.io>2015-07-31 13:53:14 +0800
commiteea9302d8f67cdef613df24e2b09a58b898b9037 (patch)
treefa587e6c2c69c797b0739ae5dc43f0182c0025eb /routers
parentb983912fce5b58568c957f0fab46b9b86b54275e (diff)
downloadgitea-eea9302d8f67cdef613df24e2b09a58b898b9037.tar.gz
gitea-eea9302d8f67cdef613df24e2b09a58b898b9037.zip
fix #1204
Diffstat (limited to 'routers')
-rw-r--r--routers/user/home.go11
1 files changed, 3 insertions, 8 deletions
diff --git a/routers/user/home.go b/routers/user/home.go
index ef05be27a3..503f9e3667 100644
--- a/routers/user/home.go
+++ b/routers/user/home.go
@@ -194,11 +194,6 @@ func Profile(ctx *middleware.Context) {
ctx.Redirect(setting.AppSubUrl + "/org/" + u.Name)
return
}
-
- // For security reason, hide e-mail address for anonymous visitors.
- if !ctx.IsSigned {
- u.Email = ""
- }
ctx.Data["Owner"] = u
tab := ctx.Query("tab")
@@ -262,7 +257,7 @@ func Email2User(ctx *middleware.Context) {
ctx.Redirect(setting.AppSubUrl + "/user/" + u.Name)
}
-func Issues(ctx *middleware.Context) {
+func Issues(ctx *middleware.Context) {
ctx.Data["Title"] = ctx.Tr("issues")
ctx.Data["PageIsDashboard"] = true
ctx.Data["PageIsIssues"] = true
@@ -389,8 +384,8 @@ func Issues(ctx *middleware.Context) {
} else {
ctx.Data["ShowCount"] = issueStats.OpenCount
}
-
+
ctx.Data["ContextUser"] = ctx.User
-
+
ctx.HTML(200, ISSUES)
}