8000 bug #44424 [SecurityBundle] Don't rely on deprecated strategy constan… · symfony/symfony@ea88d80 · GitHub
[go: up one dir, main page]

Skip to content

Commit ea88d80

Browse files
committed
bug #44424 [SecurityBundle] Don't rely on deprecated strategy constants (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
2 parents 1e726d8 + 47c3ed3 commit ea88d80

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/SecurityBundle/Resources/views/Collector/security.html.twig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -407,7 +407,7 @@
407407
{% for voter_detail in decision.voter_details %}
408408
<tr>
409409
<td class="font-normal">{{ profiler_dump(voter_detail['class']) }}</td>
410-
{% if collector.voterStrategy == constant('Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager::STRATEGY_UNANIMOUS') %}
410+
{% if collector.voterStrategy == 'unanimous' %}
411411
<td class="font-normal text-small">attribute {{ voter_detail['attributes'][0] }}</td>
412412
{% endif %}
413413
<td class="font-normal text-small">

0 commit comments

Comments
 (0)
0