mirror of
1
Fork 0

Revert "fix POST /{owner}/{repo}/comments/{id}/delete"

This reverts commit 44f2592028.
This commit is contained in:
Loïc Dachary 2023-11-26 06:33:40 +01:00
parent 027e3a7206
commit c21cc34116
No known key found for this signature in database
GPG Key ID: 992D23B392F9E4F2
1 changed files with 0 additions and 5 deletions

View File

@ -3037,11 +3037,6 @@ func DeleteComment(ctx *context.Context) {
return return
} }
if comment.Issue.RepoID != ctx.Repo.Repository.ID {
ctx.NotFound("CompareRepoID", issues_model.ErrCommentNotExist{})
return
}
if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) { if !ctx.IsSigned || (ctx.Doer.ID != comment.PosterID && !ctx.Repo.CanWriteIssuesOrPulls(comment.Issue.IsPull)) {
ctx.Error(http.StatusForbidden) ctx.Error(http.StatusForbidden)
return return