From 8f09fc64bd0364953f233244539b78ba340a39be Mon Sep 17 00:00:00 2001 From: Unknwon Date: Wed, 21 Dec 2016 01:48:11 -0500 Subject: Minor fix for PR #3624 --- routers/api/v1/repo/issue_comment.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'routers/api/v1/repo/issue_comment.go') 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 { -- cgit v1.2.3