diff --git a/features/api/adherent_messages.feature b/features/api/adherent_messages.feature index d50831377ca..0a042c5ee85 100644 --- a/features/api/adherent_messages.feature +++ b/features/api/adherent_messages.feature @@ -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" diff --git a/features/api/adherents.feature b/features/api/adherents.feature index 9dce4b39126..3cf906f2ad9 100644 --- a/features/api/adherents.feature +++ b/features/api/adherents.feature @@ -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" diff --git a/features/api/elected_representatives.feature b/features/api/elected_representatives.feature index 4d15ca45530..c9fd6c75054 100644 --- a/features/api/elected_representatives.feature +++ b/features/api/elected_representatives.feature @@ -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" diff --git a/features/api/user.feature b/features/api/user.feature index e58c4d0fd43..ccb3aeefafb 100644 --- a/features/api/user.feature +++ b/features/api/user.feature @@ -61,7 +61,7 @@ Feature: "last_month": 7 }, "tags": [], - "cadre_access": false + "cadre_access": true } """ diff --git a/src/Adherent/Tag/TagEnum.php b/src/Adherent/Tag/TagEnum.php index 825c14192c3..ec87a29c536 100644 --- a/src/Adherent/Tag/TagEnum.php +++ b/src/Adherent/Tag/TagEnum.php @@ -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, ]); } diff --git a/src/Security/Voter/DataCornerVoter.php b/src/Security/Voter/DataCornerVoter.php index 5db843e349b..37414cb1b49 100644 --- a/src/Security/Voter/DataCornerVoter.php +++ b/src/Security/Voter/DataCornerVoter.php @@ -36,10 +36,6 @@ protected function voteOnAttribute(string $attribute, $subject, TokenInterface $ return false; } - if (!$subject->isRenaissanceUser()) { - return false; - } - if (!$codes = $this->scopeRepository->findCodesGrantedForDataCorner()) { return false; }