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:
@@ -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é');
|
||||
|
||||
Reference in New Issue
Block a user