8000 Display the roles of the logged-in user in the Web Debug Toolbar -- b… · symfony/symfony@895df9f · GitHub
[go: up one dir, main page]

Skip to content

Commit 895df9f

Browse files
committed
Display the roles of the logged-in user in the Web Debug Toolbar -- bugfix
Fixes #42763
1 parent 64cbfd2 commit 895df9f

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
@@ -46,7 +46,7 @@
4646
<span>
4747
{% set remainingRoles = collector.roles|slice(1) %}
4848
{{ collector.roles|first }}
49-
{% if remainingRoles|length > 1 %}
49+
{% if remainingRoles is not empty %}
5050
+
5151
<abbr title="{{ remainingRoles|join(', ') }}">
5252
{{ remainingRoles|length }} more

0 commit comments

Comments
 (0)
0