Skip to content

Commit 47c3ed3

Browse files
committed
Don't rely on deprecated strategy constants
1 parent 1e726d8 commit 47c3ed3

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)