diff --git a/client/src/components/DashboardLayout.tsx b/client/src/components/DashboardLayout.tsx index 266380f..8e4238a 100644 --- a/client/src/components/DashboardLayout.tsx +++ b/client/src/components/DashboardLayout.tsx @@ -220,9 +220,9 @@ function DashboardLayoutContent({ // Filtrer les sections de menu selon le rôle const filteredMenuSections = menuSections.filter(section => { - // Les formateurs ne voient pas Configuration ni Traçabilité + // Les formateurs ne voient pas Configuration, Traçabilité, Analyses ni Gestion technique if (user?.role === 'formateur') { - return section.title !== 'Configuration' && section.title !== 'Traçabilité' && section.title !== 'Analyses'; + return section.title !== 'Configuration' && section.title !== 'Traçabilité' && section.title !== 'Analyses' && section.title !== 'Gestion technique'; } return true; }).map(section => { diff --git a/todo.md b/todo.md index 9e0e72d..2070dc2 100644 --- a/todo.md +++ b/todo.md @@ -1213,3 +1213,9 @@ - [x] Identifier les procédures concernées (listBySequence, getWithDates) - [x] Remplacer adminProcedure par protectedProcedure - [ ] Déployer sur le VPS + +## Masquer le menu "Gestion technique" pour les formateurs + +- [x] Identifier le composant DashboardLayout où le menu est défini +- [x] Ajouter une condition isAdmin pour masquer la section Gestion technique +- [ ] Tester et déployer sur le VPS