diff --git a/apps/web/app/_lib/sidebar.tsx b/apps/web/app/_lib/sidebar.tsx index 58ca1be..c941c00 100644 --- a/apps/web/app/_lib/sidebar.tsx +++ b/apps/web/app/_lib/sidebar.tsx @@ -25,6 +25,7 @@ const SUPER_ADMIN_LINKS = [ const PUBLIC_PATHS = ['/login', '/signup', '/onboard', '/member-login']; const ADMIN_PATHS = ['/admin']; const MEMBER_PATHS = ['/my']; +const ORG_PATHS = ['/org']; export function Sidebar() { const { admin, loading, logout } = useAuth(); @@ -45,6 +46,7 @@ export function Sidebar() { if (PUBLIC_PATHS.some((p) => pathname.startsWith(p))) return; if (ADMIN_PATHS.some((p) => pathname.startsWith(p))) return; if (MEMBER_PATHS.some((p) => pathname.startsWith(p))) return; + if (ORG_PATHS.some((p) => pathname.startsWith(p))) return; if (!admin) { router.replace(`/login?next=${encodeURIComponent(pathname)}`); } @@ -90,6 +92,10 @@ export function Sidebar() { return null; } + if (ORG_PATHS.some((p) => pathname.startsWith(p))) { + return null; + } + return (