From 042d3507620a16a181ea5505b3d54a6703845a99 Mon Sep 17 00:00:00 2001 From: Unknwon Date: Thu, 11 Aug 2016 06:22:56 -0700 Subject: [PATCH] Fix only user has repo write access can comment --- cmd/web.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/web.go b/cmd/web.go index f01b0278310..ca35043136b 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -459,12 +459,12 @@ func runWeb(ctx *cli.Context) error { m.Post("/label", repo.UpdateIssueLabel) m.Post("/milestone", repo.UpdateIssueMilestone) m.Post("/assignee", repo.UpdateIssueAssignee) - m.Combo("/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) }, reqRepoWriter) m.Group("/:index", func() { m.Post("/title", repo.UpdateIssueTitle) m.Post("/content", repo.UpdateIssueContent) + m.Combo("/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) }) }) m.Group("/comments/:id", func() {