Fix topics saving internal error and disable for archived repos (#5821)
This commit is contained in:
parent
ec31ee1c1c
commit
cd83c2ca05
2 changed files with 3 additions and 3 deletions
|
@ -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() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue