feat: Implement dashboard layout with navigation and role-based access, enhance authentication middleware to clear cache only on actual auth errors, and update expenses page metadata for authorization checks

This commit is contained in:
2025-07-11 14:57:15 -04:00
parent c6f81a6686
commit 7ee2cb3368
5 changed files with 296 additions and 6 deletions

View File

@@ -346,8 +346,9 @@ const ExpenseCreateModal = defineAsyncComponent(() => import('@/components/Expen
// Page meta
definePageMeta({
middleware: ['authentication'],
layout: 'dashboard'
middleware: ['authentication', 'authorization'],
layout: 'dashboard',
roles: ['sales', 'admin']
});
useHead({