Skip to content

Commit 6b0c13c

Browse files
committed
Merge branch '5.4' into 6.0
* 5.4: Don't rely on deprecated strategy constants
2 parents c0eeb42 + ea88d80 commit 6b0c13c

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
@@ -392,7 +392,7 @@
392392
{% for voter_detail in decision.voter_details %}
393393
<tr>
394394
<td class="font-normal">{{ profiler_dump(voter_detail['class']) }}</td>
395-
{% if collector.voterStrategy == constant('Symfony\\Component\\Security\\Core\\Authorization\\AccessDecisionManager::STRATEGY_UNANIMOUS') %}
395+
{% if collector.voterStrategy == 'unanimous' %}
396396
<td class="font-normal text-small">attribute {{ voter_detail['attributes'][0] }}</td>
397397
{% endif %}
398398
<td class="font-normal text-small">

0 commit comments

Comments
 (0)