Skip to content

Commit 3f0efdc

Browse files
committed
Missing reqToken()
1 parent cd21bc6 commit 3f0efdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

routers/api/v1/api.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,8 @@ func RegisterRoutes(m *macaron.Macaron) {
386386
Patch(reqToken(), bind(api.EditIssueOption{}), repo.EditIssue)
387387

388388
m.Group("/comments", func() {
389-
m.Combo("").Get(repo.ListIssueComments).Post(bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment)
389+
m.Combo("").Get(repo.ListIssueComments).
390+
Post(reqToken(), bind(api.CreateIssueCommentOption{}), repo.CreateIssueComment)
390391
m.Combo("/:id", reqToken()).Patch(bind(api.EditIssueCommentOption{}), repo.EditIssueComment).
391392
Delete(repo.DeleteIssueComment)
392393
})

0 commit comments

Comments
 (0)