feat(#194): module Cartes SYSTEM

Closes #194

Co-authored-by: Julien Martin <julien.martin@ptits-pas.fr>
This commit was merged in pull request #203.
This commit is contained in:
2026-09-24 09:38:39 +00:00
committed by jmartin
parent 147051821a
commit 2d8b857a84
13 changed files with 1252 additions and 4 deletions
@@ -312,15 +312,16 @@ export class AbsencesGardeService {
);
}
if (role === RoleType.ASSISTANTE_MATERNELLE) {
// Remise en attente après refus (republication)
// Remise en attente après refus OU modification d’un congé déjà accepté (S2b)
if (
row.statut === StatutAbsenceGardeType.REFUSE &&
next === StatutAbsenceGardeType.EN_ATTENTE
next === StatutAbsenceGardeType.EN_ATTENTE &&
(row.statut === StatutAbsenceGardeType.REFUSE ||
row.statut === StatutAbsenceGardeType.ACCEPTE)
) {
return;
}
throw new ForbiddenException(
'L’AM ne valide pas elle-même (sauf republication après refus)',
'L’AM ne valide pas elle-même (sauf republication / modification)',
);
}
throw new ForbiddenException('Changement de statut non autorisé');