Skip to content

Commit

Permalink
change voter const values #3267
Browse files Browse the repository at this point in the history
  • Loading branch information
emilschn committed Jan 21, 2025
1 parent 0f239b9 commit f7a2c5e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions src/Security/Voter/AffectationVoter.php
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@

class AffectationVoter extends Voter
{
public const SEE = 'ASSIGN_SEE';
public const TOGGLE = 'ASSIGN_TOGGLE';
public const ANSWER = 'ASSIGN_ANSWER';
public const CLOSE = 'ASSIGN_CLOSE';
public const REOPEN = 'ASSIGN_REOPEN';
public const SEE = 'AFFECTATION_SEE';
public const TOGGLE = 'AFFECTATION_TOGGLE';
public const ANSWER = 'AFFECTATION_ANSWER';
public const CLOSE = 'AFFECTATION_CLOSE';
public const REOPEN = 'AFFECTATION_REOPEN';

protected function supports(string $attribute, $subject): bool
{
Expand Down
2 changes: 1 addition & 1 deletion templates/back/signalement/view/header.html.twig
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@
Clôturer
</button>

{% elseif affectation and is_granted('ASSIGN_CLOSE', affectation) %}
{% elseif affectation and is_granted('AFFECTATION_CLOSE', affectation) %}
<a id="link-bouton-cloturer" href="#" aria-controls="cloture-modal" data-fr-opened="false"
class="fr-btn fr-btn--sm fr-btn--secondary fr-icon-close-line fr-btn--icon-left">
Clôturer
Expand Down

0 comments on commit f7a2c5e

Please sign in to comment.