From 7c4bf566494f786d306e9248a5454ec53af78931 Mon Sep 17 00:00:00 2001 From: Jonas Franz Date: Mon, 14 May 2018 14:15:06 +0200 Subject: [PATCH] Add support for deleting CodeComments Signed-off-by: Jonas Franz --- routers/repo/issue.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routers/repo/issue.go b/routers/repo/issue.go index b955760642..5a276f3fea 100644 --- a/routers/repo/issue.go +++ b/routers/repo/issue.go @@ -1119,7 +1119,7 @@ func DeleteComment(ctx *context.Context) { if !ctx.IsSigned || (ctx.User.ID != comment.PosterID && !ctx.Repo.IsAdmin()) { ctx.Error(403) return - } else if comment.Type != models.CommentTypeComment { + } else if comment.Type != models.CommentTypeComment && comment.Type != models.CommentTypeCode { ctx.Error(204) return }