#1419: 500 when visit a issue with issue/comments of deleted user

This commit is contained in:
Unknwon 2015-08-15 02:48:05 +08:00
parent e4d6b5d488
commit 30b428bf0e
5 changed files with 28 additions and 7 deletions

View file

@ -453,12 +453,12 @@ func runWeb(ctx *cli.Context) {
m.Combo("/new").Get(repo.NewIssue).
Post(bindIgnErr(auth.CreateIssueForm{}), repo.NewIssuePost)
m.Combo("/:index/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment)
m.Group("/:index", func() {
m.Post("", bindIgnErr(auth.CreateIssueForm{}), repo.UpdateIssue)
m.Post("/label", repo.UpdateIssueLabel)
m.Post("/milestone", repo.UpdateIssueMilestone)
m.Post("/assignee", repo.UpdateIssueAssignee)
m.Combo("/comments").Post(bindIgnErr(auth.CreateCommentForm{}), repo.NewComment)
}, reqRepoAdmin)
})
m.Group("/labels", func() {