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

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

No files matched your search

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