Browse Source

Add support for deleting CodeComments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
pull/3748/head
Jonas Franz 7 years ago
parent
commit
7c4bf56649
No known key found for this signature in database
GPG Key ID: 506AEEBE80BEDECD
  1. 2
      routers/repo/issue.go

2
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
}

Loading…
Cancel
Save