File tree Expand file tree Collapse file tree 2 files changed +23
-1
lines changed
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
3
3
4
4
6.1
5
5
---
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
7
9
8
10
6.0
9
11
---
Original file line number Diff line number Diff line change 46
46
</span >
47
47
</div >
48
48
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
+
49
69
<div class =" sf-toolbar-info-piece" >
50
70
<b >Token class</b >
51
71
<span >{{ collector .tokenClass | abbr_class }}</span >
You can’t perform that action at this time.
0 commit comments