diff options
author | Unknwon <u@gogs.io> | 2015-08-20 04:31:28 +0800 |
---|---|---|
committer | Unknwon <u@gogs.io> | 2015-08-20 04:31:28 +0800 |
commit | 371572cf5f853211fb11bb28bc41658119d3e247 (patch) | |
tree | 68530957b87dbc2f659d4a155bbec41bb557c033 /cmd | |
parent | f114f7874303d249b2956c894b1a90b042430acf (diff) | |
download | gitea-371572cf5f853211fb11bb28bc41658119d3e247.tar.gz gitea-371572cf5f853211fb11bb28bc41658119d3e247.zip |
allow edit issue and comment
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/web.go | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/cmd/web.go b/cmd/web.go index 1511d5760b..94c0a6a99d 100644 --- a/cmd/web.go +++ b/cmd/web.go @@ -467,12 +467,17 @@ func runWeb(ctx *cli.Context) { m.Combo("/:index/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment) m.Group("/:index", func() { - m.Post("/title", repo.UpdateIssueTitle) m.Post("/label", repo.UpdateIssueLabel) m.Post("/milestone", repo.UpdateIssueMilestone) m.Post("/assignee", repo.UpdateIssueAssignee) }, reqRepoAdmin) + + m.Group("/:index", func() { + m.Post("/title", repo.UpdateIssueTitle) + m.Post("/content", repo.UpdateIssueContent) + }) }) + m.Post("/comments/:id", repo.UpdateCommentContent) m.Group("/labels", func() { m.Post("/new", bindIgnErr(auth.CreateLabelForm{}), repo.NewLabel) m.Post("/edit", bindIgnErr(auth.CreateLabelForm{}), repo.UpdateLabel) |