diff --git a/src/lib/layout/containerButton.svelte b/src/lib/layout/containerButton.svelte
index 370abfe349..df3aca4b50 100644
--- a/src/lib/layout/containerButton.svelte
+++ b/src/lib/layout/containerButton.svelte
@@ -10,10 +10,10 @@
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
+ $organization?.billingPlanDetails?.name
} plan`;
export let disabled: boolean;
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);
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}