diff --git a/App.tsx b/App.tsx index 5f74772..0b7479e 100644 --- a/App.tsx +++ b/App.tsx @@ -76,6 +76,11 @@ const AuthGuard: React.FC<{ children: React.ReactNode, roles?: string[] }> = ({ return ; } + // Auto-redirect Super Admins away from the standard dashboard to their specific panel + if (location.pathname === '/' && user.role === 'super_admin') { + return ; + } + return {children}; };