Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 3c8d316

Browse filesBrowse files
committed
Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide
1 parent d0e5593 commit 3c8d316
Copy full SHA for 3c8d316

File tree

2 files changed

+24
-0
lines changed
Filter options

2 files changed

+24
-0
lines changed

‎UPGRADE-5.1.md

Copy file name to clipboardExpand all lines: UPGRADE-5.1.md
+19Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,25 @@ Routing
6161
* Added argument `$priority` to `RouteCollection::add()`
6262
* Deprecated the `RouteCompiler::REGEX_DELIMITER` constant
6363

64+
Security
65+
--------
66+
67+
* Deprecated `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute.
68+
69+
*before*
70+
```twig
71+
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
72+
<a href="">Exit impersonation</a>
73+
{% endif %}
74+
```
75+
76+
*after*
77+
```twig
78+
{% if is_granted('IS_IMPERSONATOR') %}
79+
<a href="">Exit impersonation</a>
80+
{% endif %}
81+
```
82+
6483
Yaml
6584
----
6685

‎UPGRADE-6.0.md

Copy file name to clipboardExpand all lines: UPGRADE-6.0.md
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,8 @@ Routing
4949
* Removed `RouteCollectionBuilder`.
5050
* Added argument `$priority` to `RouteCollection::add()`
5151
* Removed the `RouteCompiler::REGEX_DELIMITER` constant
52+
53+
Security
54+
--------
55+
56+
* Removed `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.