Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit e68d1cf

Browse files
committed
Merge branch '6.0' into 6.1
* 6.0: Don't rely on deprecated strategy constants
2 parents 8d13f4b + 6b0c13c commit e68d1cf

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)