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:
@@ -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}
|
||||
|
||||
Reference in New Issue
Block a user