summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--routers/repo/issue.go10
1 files changed, 6 insertions, 4 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index fc6ee9ebe6..f2600b9fdd 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -254,10 +254,12 @@ func ViewIssue(ctx *middleware.Context, params martini.Params) {
}
}
- // Update issue-user.
- if err = models.UpdateIssueUserPairByRead(ctx.User.Id, issue.Id); err != nil {
- ctx.Handle(500, "issue.ViewIssue(UpdateIssueUserPairByRead): %v", err)
- return
+ if ctx.IsSigned {
+ // Update issue-user.
+ if err = models.UpdateIssueUserPairByRead(ctx.User.Id, issue.Id); err != nil {
+ ctx.Handle(500, "issue.ViewIssue(UpdateIssueUserPairByRead): %v", err)
+ return
+ }
}
// Get poster and Assignee.