diff --git a/client/src/components/DashboardLayout.tsx b/client/src/components/DashboardLayout.tsx index bedfe2a..7c86e1c 100644 --- a/client/src/components/DashboardLayout.tsx +++ b/client/src/components/DashboardLayout.tsx @@ -228,9 +228,9 @@ function DashboardLayoutContent({ if (user?.role === 'formateur') { return section.title !== 'Configuration' && section.title !== 'Traçabilité' && section.title !== 'Analyses' && section.title !== 'Gestion technique'; } - // Les super formateurs ne voient pas Gestion technique + // Les super formateurs ne voient pas Configuration ni Gestion technique if (user?.role === 'super_formateur') { - return section.title !== 'Gestion technique'; + return section.title !== 'Configuration' && section.title !== 'Gestion technique'; } return true; }).map(section => { diff --git a/todo.md b/todo.md index f207195..1460d8a 100644 --- a/todo.md +++ b/todo.md @@ -1445,3 +1445,9 @@ - [x] Tester localement - [x] Déployer sur VPS avec migration - [x] Créer un checkpoint + +## Correction - Super formateur ne doit pas avoir accès à Configuration + +- [x] Modifier DashboardLayout pour masquer Configuration aux super formateurs +- [x] Déployer sur VPS +- [x] Créer un checkpoint