Checkpoint: Correction des permissions : les super formateurs n'ont plus accès à la section Configuration, uniquement à Gestion, Traçabilité et Analyses.

This commit is contained in:
Manus
2026-01-29 11:41:13 -05:00
parent c16392900c
commit a221deb4f1
2 changed files with 8 additions and 2 deletions

View File

@@ -228,9 +228,9 @@ function DashboardLayoutContent({
if (user?.role === 'formateur') { if (user?.role === 'formateur') {
return section.title !== 'Configuration' && section.title !== 'Traçabilité' && section.title !== 'Analyses' && section.title !== 'Gestion technique'; 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') { if (user?.role === 'super_formateur') {
return section.title !== 'Gestion technique'; return section.title !== 'Configuration' && section.title !== 'Gestion technique';
} }
return true; return true;
}).map(section => { }).map(section => {

View File

@@ -1445,3 +1445,9 @@
- [x] Tester localement - [x] Tester localement
- [x] Déployer sur VPS avec migration - [x] Déployer sur VPS avec migration
- [x] Créer un checkpoint - [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