feat: chat izq/der en tickets, correos con ultimo mensaje, dashboard filtrable solo admin/supervisor

This commit is contained in:
Nurfog committed 2026-09-29 16:15:53 -03:00
1 parent 01173d973e
commit 8b59680588
7 files changed
+526 -41

No files matched your search

+5 -1
View File
@@ -9,7 +9,11 @@ export default function Sidebar() {
const { user, logout } = useAuth();
const navItems = [
{ href: "/", icon: "bi-speedometer2", label: "Dashboard" },
// Dashboard solo para administradores (todas las áreas) y
// supervisores (solo su área).
...((user?.role === "admin" || user?.role === "supervisor")
? [{ href: "/", icon: "bi-speedometer2", label: "Dashboard" }]
: []),
{ href: "/tickets", icon: "bi-ticket-detailed", label: "Tickets" },
{ href: "/knowledge-base", icon: "bi-journal-bookmark", label: "Knowledge Base" },
];