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é') } }