diff options
author | Unknwon <u@gogs.io> | 2016-12-21 01:48:11 -0500 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-12-21 01:48:11 -0500 |
commit | 8f09fc64bd0364953f233244539b78ba340a39be (patch) | |
tree | a1b09ca2b5adcb35a2420b92919086f5ad70c34c /routers | |
parent | b2de3d71c567e170f12da8a92f7865df77545b1e (diff) |
Minor fix for PR #3624
Diffstat (limited to 'routers')
-rw-r--r-- | routers/api/v1/repo/issue_comment.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/routers/api/v1/repo/issue_comment.go b/routers/api/v1/repo/issue_comment.go index eaa9c0c4..fe94fd71 100644 --- a/routers/api/v1/repo/issue_comment.go +++ b/routers/api/v1/repo/issue_comment.go @@ -84,7 +84,7 @@ func EditIssueComment(ctx *context.APIContext, form api.EditIssueCommentOption) return } - if !ctx.IsSigned || (ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin()) { + if ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin() { ctx.Status(403) return } else if comment.Type != models.COMMENT_TYPE_COMMENT { @@ -111,7 +111,7 @@ func DeleteIssueComment(ctx *context.APIContext) { return } - if !ctx.IsSigned || (ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin()) { + if ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin() { ctx.Status(403) return } else if comment.Type != models.COMMENT_TYPE_COMMENT { |