Skip to content

Commit

Permalink
chore: retirer validation
Browse files Browse the repository at this point in the history
  • Loading branch information
Mzem committed Nov 25, 2024
1 parent d569ff1 commit 07a6f4a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/idp/service/idp.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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é')
}
}
Expand Down

0 comments on commit 07a6f4a

Please sign in to comment.