summaryrefslogtreecommitdiffstats
path: root/routers
diff options
context:
space:
mode:
authorRichard Mahn <richmahn@users.noreply.github.com>2019-07-15 23:43:30 -0400
committertechknowlogick <techknowlogick@gitea.io>2019-07-15 23:43:30 -0400
commit2771619acfd8a690c610363b12dd5b8e12f62e12 (patch)
treed62917e6851bb8a4a76dea87eaa85afb082f13a2 /routers
parentf34726a4b9d76c9a49ce2d28ddde48af5d4745c4 (diff)
downloadgitea-2771619acfd8a690c610363b12dd5b8e12f62e12.tar.gz
gitea-2771619acfd8a690c610363b12dd5b8e12f62e12.zip
Fixes #7475 - Settings pages giving UnitType error message (#7482)
Diffstat (limited to 'routers')
-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 c81d56064c..196420dfe4 100644
--- a/routers/routes/routes.go
+++ b/routers/routes/routes.go
@@ -667,7 +667,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, func(ctx *context.Context) {
ctx.Data["PageIsSettings"] = true
})
- }, reqSignIn, context.RepoAssignment(), reqRepoAdmin, context.UnitTypes(), context.RepoRef())
+ }, reqSignIn, context.RepoAssignment(), context.UnitTypes(), reqRepoAdmin, context.RepoRef())
m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.UnitTypes(), repo.Action)