From a221deb4f1862de57b0b221359f80aa88f38c035 Mon Sep 17 00:00:00 2001 From: Manus Date: Thu, 29 Jan 2026 11:41:13 -0500 Subject: [PATCH] =?UTF-8?q?Checkpoint:=20Correction=20des=20permissions=20?= =?UTF-8?q?:=20les=20super=20formateurs=20n'ont=20plus=20acc=C3=A8s=20?= =?UTF-8?q?=C3=A0=20la=20section=20Configuration,=20uniquement=20=C3=A0=20?= =?UTF-8?q?Gestion,=20Tra=C3=A7abilit=C3=A9=20et=20Analyses.?= 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 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