From 73d13017499c5338591176ee56a2e365d7d37847 Mon Sep 17 00:00:00 2001 From: Rotimi Best Date: Sat, 18 May 2024 21:33:19 +0100 Subject: [PATCH] more debugging --- .../src/lib/components/RoleBasedSecurity/index.svelte | 3 +++ apps/dashboard/src/routes/+layout.svelte | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/dashboard/src/lib/components/RoleBasedSecurity/index.svelte b/apps/dashboard/src/lib/components/RoleBasedSecurity/index.svelte index bd577090..581567b9 100644 --- a/apps/dashboard/src/lib/components/RoleBasedSecurity/index.svelte +++ b/apps/dashboard/src/lib/components/RoleBasedSecurity/index.svelte @@ -17,6 +17,9 @@ userRole = user.role_id; } } + + $: console.log({ group: $group }); + $: console.log('is allowed', allowedRoles.includes(userRole), 'roles', userRole); {#if allowedRoles.includes(userRole)} diff --git a/apps/dashboard/src/routes/+layout.svelte b/apps/dashboard/src/routes/+layout.svelte index 16052751..58a74e56 100644 --- a/apps/dashboard/src/routes/+layout.svelte +++ b/apps/dashboard/src/routes/+layout.svelte @@ -307,7 +307,7 @@ {:else}
{#if $navigating && $delayedPreloading} - +