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:
@@ -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 => {
|
||||
|
||||
6
todo.md
6
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
|
||||
|
||||
Reference in New Issue
Block a user