summaryrefslogtreecommitdiffstats
path: root/routers/routes
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2019-01-24 12:22:27 +0200
committerGitHub <noreply@github.com>2019-01-24 12:22:27 +0200
commitcd83c2ca051f9d6a3f7b2842e19aaa2c069cf769 (patch)
tree5d8776f684c13436814ca8581c61c7c9e8237696 /routers/routes
parentec31ee1c1cd028dc59292e19d4b1c9dd954ba364 (diff)
downloadgitea-cd83c2ca051f9d6a3f7b2842e19aaa2c069cf769.tar.gz
gitea-cd83c2ca051f9d6a3f7b2842e19aaa2c069cf769.zip
Fix topics saving internal error and disable for archived repos (#5821)
Diffstat (limited to 'routers/routes')
-rw-r--r--routers/routes/routes.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/routers/routes/routes.go b/routers/routes/routes.go
index 6287981894..6445c0a9af 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -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() {