Fix topics saving internal error and disable for archived repos (#5821)

This commit is contained in:
Lauris BH 2019-01-24 12:22:27 +02:00 committed by GitHub
parent ec31ee1c1c
commit cd83c2ca05
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View file

@ -652,7 +652,7 @@ func RegisterRoutes(m *macaron.Macaron) {
m.Group("/:username/:reponame", func() {
m.Post("/topics", repo.TopicsPost)
}, context.RepoMustNotBeArchived(), context.RepoAssignment(), reqRepoAdmin)
}, context.RepoAssignment(), context.RepoMustNotBeArchived(), reqRepoAdmin)
m.Group("/:username/:reponame", func() {
m.Group("", func() {