1
0
Fork 0
mirror of synced 2024-07-05 06:20:55 +12:00
This commit is contained in:
mike12345567 2021-07-27 16:24:39 +01:00
parent fb562908ee
commit b73b20cdbb
2 changed files with 4 additions and 2 deletions

View file

@ -23,7 +23,10 @@ function buildNoAuthRegex(patterns) {
})
}
function finalise(ctx, { authenticated, user, internal, version, publicEndpoint } = {}) {
function finalise(
ctx,
{ authenticated, user, internal, version, publicEndpoint } = {}
) {
ctx.publicEndpoint = publicEndpoint || false
ctx.isAuthenticated = authenticated || false
ctx.user = user

View file

@ -19,7 +19,6 @@
if (loaded && multiTenancyEnabled && !tenantSet) {
$redirect("./auth/org")
} else if (loaded && !hasAdminUser) {
$redirect("./admin")
}
}