aboutsummaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknown <joe2010xtmf@163.com>2014-03-30 16:34:23 -0400
committerUnknown <joe2010xtmf@163.com>2014-03-30 16:34:23 -0400
commite938863ae6887f7c3c24145ed3b64dc1d27ee675 (patch)
tree05285396d03307908f73e6dfee4efe2872c83b0b /routers/repo/issue.go
parent2a0066420a9395e5fa5afcd9be4d094a48eee3fa (diff)
downloadgitea-e938863ae6887f7c3c24145ed3b64dc1d27ee675.tar.gz
gitea-e938863ae6887f7c3c24145ed3b64dc1d27ee675.zip
Mirror fix on UI
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index f2d8959a04..6cad2c25d2 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -164,7 +164,7 @@ func ViewIssue(ctx *middleware.Context, params martini.Params) {
ctx.Data["Title"] = issue.Name
ctx.Data["Issue"] = issue
ctx.Data["Comments"] = comments
- ctx.Data["IsIssueOwner"] = ctx.Repo.IsOwner || issue.PosterId == ctx.User.Id
+ ctx.Data["IsIssueOwner"] = ctx.Repo.IsOwner || (ctx.IsSigned && issue.PosterId == ctx.User.Id)
ctx.Data["IsRepoToolbarIssues"] = true
ctx.Data["IsRepoToolbarIssuesList"] = false
ctx.HTML(200, "issue/view")