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

Skip to content

Commit ec98d71

Browse files
committed
Display the roles of the logged-in user in the Web Debug Toolbar
Fixes #42763
1 parent a05b6a3 commit ec98d71

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

src/Symfony/Bundle/SecurityBundle/CHANGELOG.md

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ CHANGELOG
1414
* Deprecate passing an array of arrays as 1st argument to `MainConfiguration`, pass a sorted flat array of
1515
factories instead.
1616
* Deprecate the `always_authenticate_before_granting` option
17+
* Display the roles of the logged-in user in the Web Debug Toolbar
1718

1819
5.3
1920
---

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

+5
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,11 @@
4141
<span class="sf-toolbar-status sf-toolbar-status-{{ is_authenticated ? 'green' : 'yellow' }}">{{ is_authenticated ? 'Yes' : 'No' }}</span>
4242
</div>
4343

44+
<div class="sf-toolbar-info-piece">
45+
<b>Roles</b>
46+
<span>{{ collector.roles|join(', ') }}</span>
47+
</div>
48+
4449
<div class="sf-toolbar-info-piece">
4550
<b>Token class</b>
4651
<span>{{ collector.tokenClass|abbr_class }}</span>

0 commit comments

Comments
 (0)
0