diff options
author | Unknwon <u@gogs.io> | 2016-08-11 06:22:56 -0700 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2016-08-11 06:22:56 -0700 |
commit | 042d3507620a16a181ea5505b3d54a6703845a99 (patch) | |
tree | 3c6c0f8371d03cb26256979b0563653fa8907ef8 /cmd | |
parent | 0f26f3678ac2471b8d94770c3446d76220d9531b (diff) | |
download | gitea-042d3507620a16a181ea5505b3d54a6703845a99.tar.gz gitea-042d3507620a16a181ea5505b3d54a6703845a99.zip |
Fix only user has repo write access can comment
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 2 |
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() { |