Skip to content

Commit

Permalink
bug #44424 [SecurityBundle] Don't rely on deprecated strategy constan…
Browse files Browse the repository at this point in the history
…ts (derrabus)

This PR was merged into the 5.4 branch.

Discussion
----------

[SecurityBundle] Don't rely on deprecated strategy constants

| Q             | A
| ------------- | ---
| Branch?       | 5.4
| Bug fix?      | yes
| New feature?  | no
| Deprecations? |no
| Tickets       | Fix #44384
| License       | MIT
| Doc PR        | N/A

Commits
-------

47c3ed3 Don't rely on deprecated strategy constants
  • Loading branch information
fabpot committed Dec 2, 2021
2 parents 1e726d8 + 47c3ed3 commit ea88d80
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -407,7 +407,7 @@
{% for voter_detail in decision.voter_details %}
<tr>
<td class="font-normal">{{ profiler_dump(voter_detail['class']) }}</td>
{% if collector.voterStrategy == constant('Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager::STRATEGY_UNANIMOUS') %}
{% if collector.voterStrategy == 'unanimous' %}
<td class="font-normal text-small">attribute {{ voter_detail['attributes'][0] }}</td>
{% endif %}
<td class="font-normal text-small">
Expand Down

0 comments on commit ea88d80

Please sign in to comment.