Pārlūkot izejas kodu

Fix only user has repo write access can comment

tags/v0.9.99
Unknwon pirms 7 gadiem
vecāks
revīzija
042d350762
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1
    1
      cmd/web.go

+ 1
- 1
cmd/web.go Parādīt failu

@@ -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() {

Notiek ielāde…
Atcelt
Saglabāt