From 8874d4ee2f19b69de14a8ffce81403bfd9a832b0 Mon Sep 17 00:00:00 2001 From: unknown Date: Thu, 22 Feb 2024 15:51:53 +0000 Subject: [PATCH] Manage basket addition from Alias #382 --- src/routes/(app)/cart/+page.svelte | 6 ++++-- src/routes/(app)/product/[id]/+page.server.ts | 10 ++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/routes/(app)/cart/+page.svelte b/src/routes/(app)/cart/+page.svelte index 43e227467..7c356b1e9 100644 --- a/src/routes/(app)/cart/+page.svelte +++ b/src/routes/(app)/cart/+page.svelte @@ -15,7 +15,7 @@ import { oneMaxPerLine } from '$lib/types/Product.js'; import { UrlDependency } from '$lib/types/UrlDependency.js'; import CmsDesign from '$lib/components/CmsDesign.svelte'; - import { POS_ROLE_ID, SUPER_ADMIN_ROLE_ID } from '$lib/types/User'; + import { CUSTOMER_ROLE_ID } from '$lib/types/User'; export let data; @@ -43,6 +43,7 @@ }); let alias = ''; let formAlias: HTMLFormElement; + const { t, locale, countryName } = useI18n(); @@ -70,12 +71,13 @@ {/if}

{t('cart.items')}

- {#if data.roleId === POS_ROLE_ID || data.roleId === SUPER_ADMIN_ROLE_ID} + {#if data.roleId && data.roleId !== CUSTOMER_ROLE_ID}