Let agency configure each client's left-nav modules from the ficha.

Checkboxes match the sidebar (incl. Social sub-items), with a live preview and route guard so clients cannot open disabled sections.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
4Ventures
2026-10-13 17:52:55 +02:00
parent d3e383dd08
commit fd2bd9582d
5 changed files with 278 additions and 81 deletions

View File

@@ -13,6 +13,7 @@ import {
} from '@/lib/agency';
import DashboardShell from '@/components/DashboardShell';
import DashboardProviders from '@/components/DashboardProviders';
import ModuleAccessGuard from '@/components/ModuleAccessGuard';
import {
DashboardModuleId,
TenantSettings,
@@ -82,6 +83,10 @@ export default async function DashboardLayout({
return (
<DashboardProviders>
<ModuleAccessGuard
isAgency={isAgency}
enabledModules={enabledModules}
/>
<DashboardShell
email={email}
company={company}