From 5324f506b66df95c0080a27395bce02bebc350eb Mon Sep 17 00:00:00 2001 From: mike12345567 Date: Tue, 27 Jul 2021 16:24:39 +0100 Subject: [PATCH] Linting. --- packages/auth/src/middleware/authenticated.js | 5 ++++- packages/builder/src/pages/builder/_layout.svelte | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/auth/src/middleware/authenticated.js b/packages/auth/src/middleware/authenticated.js index 250b151438..fa28ca7ba5 100644 --- a/packages/auth/src/middleware/authenticated.js +++ b/packages/auth/src/middleware/authenticated.js @@ -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 diff --git a/packages/builder/src/pages/builder/_layout.svelte b/packages/builder/src/pages/builder/_layout.svelte index b16ffed7a8..ce883ee541 100644 --- a/packages/builder/src/pages/builder/_layout.svelte +++ b/packages/builder/src/pages/builder/_layout.svelte @@ -19,7 +19,6 @@ if (loaded && multiTenancyEnabled && !tenantSet) { $redirect("./auth/org") } else if (loaded && !hasAdminUser) { - $redirect("./admin") } }