|
|
|
|
@ -721,8 +721,8 @@ func deleteIssueComment(ctx *context.APIContext) {
@@ -721,8 +721,8 @@ func deleteIssueComment(ctx *context.APIContext) {
|
|
|
|
|
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) { |
|
|
|
|
ctx.Status(http.StatusForbidden) |
|
|
|
|
return |
|
|
|
|
} else if comment.Type != issues_model.CommentTypeComment { |
|
|
|
|
ctx.Status(http.StatusNoContent) |
|
|
|
|
} else if !comment.Type.HasContentSupport() { |
|
|
|
|
ctx.Status(http.StatusBadRequest) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|