mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-28 07:35:30 +00:00
Revert "fix POST /{owner}/{repo}/comments/{id}/delete"
This reverts commit 44f2592028
.
This commit is contained in:
parent
027e3a7206
commit
c21cc34116
|
@ -3037,11 +3037,6 @@ func DeleteComment(ctx *context.Context) {
|
|||
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)) {
|
||||
ctx.Error(http.StatusForbidden)
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue