diff --git a/packages/builder/src/pages/builder/app/[application]/_layout.svelte b/packages/builder/src/pages/builder/app/[application]/_layout.svelte index 130bc386ac..5f0710338a 100644 --- a/packages/builder/src/pages/builder/app/[application]/_layout.svelte +++ b/packages/builder/src/pages/builder/app/[application]/_layout.svelte @@ -24,6 +24,7 @@ // Get Package and set store let promise = getPackage() + let betaAccess = false // Sync once when you load the app let hasSynced = false @@ -74,6 +75,9 @@ if (!hasSynced && application) { try { await API.syncApp(application) + // check if user has beta access + const betaResponse = await API.checkBetaAccess($auth?.user?.email) + betaAccess = betaResponse.access } catch (error) { notifications.error("Failed to sync with production database") } @@ -91,9 +95,14 @@
{:then _}
- - Try the all new budibase design interface. - + {#if betaAccess} + + Try the all new budibase design interface. + + {/if}