Skip to content

Commit

Permalink
Open esCadre for BDE user
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed May 10, 2024
1 parent 2fa906c commit 9a4a943
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/Adherent/Tag/TagEnum.php
Expand Up @@ -60,6 +60,7 @@ public static function getAdherentTags(): array
self::SYMPATHISANT_ADHESION_INCOMPLETE,
self::SYMPATHISANT_COMPTE_EM,
self::SYMPATHISANT_AUTRE_PARTI,
self::SYMPATHISANT_BESOIN_D_EUROPE,
]);
}

Expand Down
2 changes: 1 addition & 1 deletion src/Security/Voter/DataCornerVoter.php
Expand Up @@ -36,7 +36,7 @@ protected function voteOnAttribute(string $attribute, $subject, TokenInterface $
return false;
}

if (!$subject->isRenaissanceUser()) {
if (!$subject->isRenaissanceUser() && !$subject->isBesoinDEuropeUser()) {
return false;
}

Expand Down

0 comments on commit 9a4a943

Please sign in to comment.