summaryrefslogtreecommitdiffstats
path: root/routers/repo/issue.go
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-10-31 18:59:07 -0400
committerUnknwon <u@gogs.io>2015-10-31 18:59:07 -0400
commitfad31ca302e50af8fa2296b26606e3fd9469ebfc (patch)
tree51e66832d4811b4bbb7ec4b1cf5a68fc2d44918f /routers/repo/issue.go
parent6b8bef3cf6c61459f8bec03aa05e2ebcd099f871 (diff)
downloadgitea-fad31ca302e50af8fa2296b26606e3fd9469ebfc.tar.gz
gitea-fad31ca302e50af8fa2296b26606e3fd9469ebfc.zip
work on #1748
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r--routers/repo/issue.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/repo/issue.go b/routers/repo/issue.go
index 58382d18cc..fb64f6a348 100644
--- a/routers/repo/issue.go
+++ b/routers/repo/issue.go
@@ -781,8 +781,8 @@ func NewComment(ctx *middleware.Context, form auth.CreateCommentForm) {
var comment *models.Comment
defer func() {
- // Check if issue owner/poster changes the status of issue.
- if (ctx.Repo.IsOwner() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id))) &&
+ // Check if issue admin/poster changes the status of issue.
+ if (ctx.Repo.IsAdmin() || (ctx.IsSigned && issue.IsPoster(ctx.User.Id))) &&
(form.Status == "reopen" || form.Status == "close") &&
!(issue.IsPull && issue.HasMerged) {