Fixes #7475 - Settings pages giving UnitType error message (#7482)

pull/7237/head^2
Richard Mahn 5 years ago committed by techknowlogick
parent f34726a4b9
commit 2771619acf
  1. 2
      routers/routes/routes.go

@ -667,7 +667,7 @@ func RegisterRoutes(m *macaron.Macaron) {
}, func(ctx *context.Context) { }, func(ctx *context.Context) {
ctx.Data["PageIsSettings"] = true 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) m.Get("/:username/:reponame/action/:action", reqSignIn, context.RepoAssignment(), context.UnitTypes(), repo.Action)

Loading…
Cancel
Save