From eb111099c65e3b51f9ad7e12b821abc2fcb34fc7 Mon Sep 17 00:00:00 2001 From: Manus Date: Sun, 25 Jan 2026 07:11:03 -0500 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Masquer=20le=20menu=20"Gestion=20?= =?UTF-8?q?technique"=20pour=20les=20formateurs=20en=20ajoutant=20cette=20?= =?UTF-8?q?section=20=C3=A0=20la=20liste=20des=20menus=20filtr=C3=A9s=20da?= =?UTF-8?q?ns=20DashboardLayout?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/components/DashboardLayout.tsx | 4 ++-- todo.md | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) 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