diff options
author | Unknwon <u@gogs.io> | 2015-10-31 18:59:07 -0400 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-10-31 18:59:07 -0400 |
commit | fad31ca302e50af8fa2296b26606e3fd9469ebfc (patch) | |
tree | 51e66832d4811b4bbb7ec4b1cf5a68fc2d44918f /routers/repo/issue.go | |
parent | 6b8bef3cf6c61459f8bec03aa05e2ebcd099f871 (diff) | |
download | gitea-fad31ca302e50af8fa2296b26606e3fd9469ebfc.tar.gz gitea-fad31ca302e50af8fa2296b26606e3fd9469ebfc.zip |
work on #1748
Diffstat (limited to 'routers/repo/issue.go')
-rw-r--r-- | routers/repo/issue.go | 4 |
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) { |