summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2016-08-11 06:22:56 -0700
committerUnknwon <u@gogs.io>2016-08-11 06:22:56 -0700
commit042d3507620a16a181ea5505b3d54a6703845a99 (patch)
tree3c6c0f8371d03cb26256979b0563653fa8907ef8 /cmd
parent0f26f3678ac2471b8d94770c3446d76220d9531b (diff)
downloadgitea-042d3507620a16a181ea5505b3d54a6703845a99.tar.gz
gitea-042d3507620a16a181ea5505b3d54a6703845a99.zip
Fix only user has repo write access can comment
Diffstat (limited to 'cmd')
-rw-r--r--cmd/web.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go
index f01b027831..ca35043136 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() {