We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0c9f37d commit 70d2960Copy full SHA for 70d2960
routers/api/v1/repo/issue_comment.go
@@ -721,7 +721,7 @@ func deleteIssueComment(ctx *context.APIContext) {
721
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) {
722
ctx.Status(http.StatusForbidden)
723
return
724
- } else if comment.Type != issues_model.CommentTypeComment && comment.Type != issues_model.CommentTypeCode {
+ } else if comment.Type != issues_model.CommentTypeComment {
725
ctx.Status(http.StatusNoContent)
726
727
}
0 commit comments