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 8ddb631
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion features/api/adherent_messages.feature
Expand Up @@ -417,7 +417,8 @@ Feature:
"sympathisant": "Sympathisant",
"sympathisant:adhesion_incomplete": "Sympathisant - Adhésion incomplète",
"sympathisant:compte_em": "Sympathisant - Ancien compte En Marche",
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti"
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti",
"sympathisant:besoin_d_europe": "Sympathisant - Besoin d'Europe"
}
},
"type": "select"
Expand Down
3 changes: 2 additions & 1 deletion features/api/adherents.feature
Expand Up @@ -948,7 +948,8 @@ Feature:
"sympathisant": "Sympathisant",
"sympathisant:adhesion_incomplete": "Sympathisant - Adhésion incomplète",
"sympathisant:compte_em": "Sympathisant - Ancien compte En Marche",
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti"
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti",
"sympathisant:besoin_d_europe": "Sympathisant - Besoin d'Europe"
}
},
"type": "select"
Expand Down
3 changes: 2 additions & 1 deletion features/api/elected_representatives.feature
Expand Up @@ -373,7 +373,8 @@ Feature:
"sympathisant": "Sympathisant",
"sympathisant:adhesion_incomplete": "Sympathisant - Adhésion incomplète",
"sympathisant:compte_em": "Sympathisant - Ancien compte En Marche",
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti"
"sympathisant:autre_parti": "Sympathisant - Adhérent d'un autre parti",
"sympathisant:besoin_d_europe": "Sympathisant - Besoin d'Europe"
}
},
"type": "select"
Expand Down
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 8ddb631

Please sign in to comment.