This commit is contained in:
mike12345567 2021-07-27 16:24:39 +01:00
parent adf6d18cb1
commit 5324f506b6
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.publicEndpoint = publicEndpoint || false
ctx.isAuthenticated = authenticated || false ctx.isAuthenticated = authenticated || false
ctx.user = user ctx.user = user

View File

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