From b5661d3731ff0d841e1196de9565798358a864a4 Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Wed, 1 Jul 2026 10:05:59 +0530 Subject: [PATCH 1/3] fix(auth): hide email policies on self-hosted --- .../auth/security/+page.svelte | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/src/routes/(console)/project-[region]-[project]/auth/security/+page.svelte b/src/routes/(console)/project-[region]-[project]/auth/security/+page.svelte index 8cc0749d3b..64737bb7f8 100644 --- a/src/routes/(console)/project-[region]-[project]/auth/security/+page.svelte +++ b/src/routes/(console)/project-[region]-[project]/auth/security/+page.svelte @@ -10,6 +10,7 @@ import PasswordStrengthPolicy from './passwordStrengthPolicy.svelte'; import SessionSecurity from './sessionSecurity.svelte'; import UpdateSignupEmailSecurity from './updateSignupEmailSecurity.svelte'; + import { isCloud } from '$lib/system'; let { data }: PageProps = $props(); @@ -24,12 +25,14 @@ dictionaryPolicy={data.passwordDictionaryPolicy} historyPolicy={data.passwordHistoryPolicy} personalDataPolicy={data.passwordPersonalDataPolicy} /> - + {#if isCloud} + + {/if} Date: Wed, 1 Jul 2026 10:29:56 +0530 Subject: [PATCH 2/3] fix: guard payments page on self-hosted, fix billingPlanDetails optional chain --- src/lib/layout/containerButton.svelte | 2 +- src/routes/(console)/account/payments/+page.ts | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/lib/layout/containerButton.svelte b/src/lib/layout/containerButton.svelte index 370abfe349..e70816f68c 100644 --- a/src/lib/layout/containerButton.svelte +++ b/src/lib/layout/containerButton.svelte @@ -10,7 +10,7 @@ export let title: string; export let tooltipContent = - $organization?.billingPlanDetails.group === BillingPlanGroup.Starter + $organization?.billingPlanDetails?.group === BillingPlanGroup.Starter ? `Upgrade to add more ${title.toLocaleLowerCase()}` : `You've reached the ${title.toLocaleLowerCase()} limit for the ${ $organization?.billingPlanDetails.name diff --git a/src/routes/(console)/account/payments/+page.ts b/src/routes/(console)/account/payments/+page.ts index fb0cb2d96d..d1f05465f8 100644 --- a/src/routes/(console)/account/payments/+page.ts +++ b/src/routes/(console)/account/payments/+page.ts @@ -1,8 +1,12 @@ +import { redirect } from '@sveltejs/kit'; import { Dependencies } from '$lib/constants'; import { sdk } from '$lib/stores/sdk'; +import { isCloud } from '$lib/system'; import type { PageLoad } from './$types'; export const load: PageLoad = async ({ depends }) => { + if (!isCloud) redirect(302, '/'); + depends(Dependencies.PAYMENT_METHODS); depends(Dependencies.ADDRESS); From 85dd10185cdf9d65614e7613f1055cc5e0726d6b Mon Sep 17 00:00:00 2001 From: harsh mahajan Date: Wed, 1 Jul 2026 10:38:55 +0530 Subject: [PATCH 3/3] fix: add missing optional chain on billingPlanDetails.name --- src/lib/layout/containerButton.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/layout/containerButton.svelte b/src/lib/layout/containerButton.svelte index e70816f68c..df3aca4b50 100644 --- a/src/lib/layout/containerButton.svelte +++ b/src/lib/layout/containerButton.svelte @@ -13,7 +13,7 @@ $organization?.billingPlanDetails?.group === BillingPlanGroup.Starter ? `Upgrade to add more ${title.toLocaleLowerCase()}` : `You've reached the ${title.toLocaleLowerCase()} limit for the ${ - $organization?.billingPlanDetails.name + $organization?.billingPlanDetails?.name } plan`; export let disabled: boolean;