File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
src/Symfony/Bundle/SecurityBundle
Resources/views/Collector Expand file tree Collapse file tree 2 files changed +23
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,9 @@ CHANGELOG
33
446.1
55---
6- * The ` security.access_control ` now accepts a ` RequestMatcherInterface ` under the ` request_matcher ` option as scope configuration
6+
7+ * The ` security.access_control ` now accepts a ` RequestMatcherInterface ` under the ` request_matcher ` option as scope configuration
8+ * Display the inherited roles of the logged-in user in the Web Debug Toolbar
79
8106.0
911---
Original file line number Diff line number Diff line change 4646 </span >
4747 </div >
4848
49+ {% if collector .supportsRoleHierarchy %}
50+ <div class =" sf-toolbar-info-piece" >
51+ <b >Inherited Roles</b >
52+ <span >
53+ {% if collector .inheritedRoles is empty %}
54+ none
55+ {% else %}
56+ {% set remainingRoles = collector .inheritedRoles | slice (1 ) %}
57+ {{ collector .inheritedRoles | first }}
58+ {% if remainingRoles is not empty %}
59+ +
60+ <abbr title =" {{ remainingRoles | join (' , ' ) }}" >
61+ {{ remainingRoles | length }} more
62+ </abbr >
63+ {% endif %}
64+ {% endif %}
65+ </span >
66+ </div >
67+ {% endif %}
68+
4969 <div class =" sf-toolbar-info-piece" >
5070 <b >Token class</b >
5171 <span >{{ collector .tokenClass | abbr_class }}</span >
You can’t perform that action at this time.
0 commit comments