From 07a6f4aa960993a622a6a9338d878824a0ae8a48 Mon Sep 17 00:00:00 2001 From: Malek Zemni Date: Mon, 25 Nov 2024 14:27:55 +0100 Subject: [PATCH] chore: retirer validation --- src/idp/service/idp.service.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/idp/service/idp.service.ts b/src/idp/service/idp.service.ts index 58652aa..5993ca7 100644 --- a/src/idp/service/idp.service.ts +++ b/src/idp/service/idp.service.ts @@ -264,11 +264,12 @@ export abstract class IdpService { function verifierQueLUtilisateurEstUnConseillerDepartementalLegitime( userType: User.Type, userStructure: User.Structure, - authorizedList: string[], + _authorizedList: string[], email?: string ): void { if (estConseillerDept(userType, userStructure)) { - if (!email || !authorizedList.includes(email)) { + // TODO mettre en place vérification pattern + if (!email) { throw new Error('Conseiller Départemental non autorisé') } }