Linting.
This commit is contained in:
parent
adf6d18cb1
commit
5324f506b6
|
@ -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
|
||||||
|
|
|
@ -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")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue