Backport for #7475 - settings error (#7483)

This commit is contained in:
Richard Mahn 2019-07-16 00:45:38 -04:00 committed by Lunny Xiao
parent 92b993c91f
commit a29e667eff

View File

@ -665,7 +665,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)