Skip to content

Commit

Permalink
Open esCadre for BDE user (#10199)
Browse files Browse the repository at this point in the history
  • Loading branch information
ottaviano committed May 10, 2024
1 parent b2073cf commit 96c20f6
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 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
2 changes: 1 addition & 1 deletion features/api/user.feature
Expand Up @@ -61,7 +61,7 @@ Feature:
"last_month": 7
},
"tags": [],
"cadre_access": false
"cadre_access": true
}
"""

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
4 changes: 0 additions & 4 deletions src/Security/Voter/DataCornerVoter.php
Expand Up @@ -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;
}
Expand Down

0 comments on commit 96c20f6

Please sign in to comment.