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 df512f7 commit ac409fcCopy full SHA for ac409fc
routers/api/v1/api.go
@@ -898,7 +898,7 @@ func Routes(ctx gocontext.Context) *web.Route {
898
m.Group("/{index}", func() {
899
m.Combo("").Get(repo.GetIssue).
900
Patch(reqToken(), bind(api.EditIssueOption{}), repo.EditIssue).
901
- Delete(reqToken(), reqAdmin(), repo.DeleteIssue)
+ Delete(reqToken(), reqAdmin(), context.ReferencesGitRepo(), repo.DeleteIssue)
902
m.Group("/comments", func() {
903
m.Combo("").Get(repo.ListIssueComments).
904
Post(reqToken(), mustNotBeArchived, bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment)
0 commit comments