소스 검색

Fix only user has repo write access can comment

tags/v0.9.99
Unknwon 7 년 전
부모
커밋
042d350762
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1
    1
      cmd/web.go

+ 1
- 1
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() {

Loading…
취소
저장