Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide
This commit is contained in:
parent
d0e5593b1f
commit
3c8d316f65
@ -61,6 +61,25 @@ Routing
|
||||
* Added argument `$priority` to `RouteCollection::add()`
|
||||
* Deprecated the `RouteCompiler::REGEX_DELIMITER` constant
|
||||
|
||||
Security
|
||||
--------
|
||||
|
||||
* Deprecated `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute.
|
||||
|
||||
*before*
|
||||
```twig
|
||||
{% if is_granted('ROLE_PREVIOUS_ADMIN') %}
|
||||
<a href="">Exit impersonation</a>
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
*after*
|
||||
```twig
|
||||
{% if is_granted('IS_IMPERSONATOR') %}
|
||||
<a href="">Exit impersonation</a>
|
||||
{% endif %}
|
||||
```
|
||||
|
||||
Yaml
|
||||
----
|
||||
|
||||
|
@ -49,3 +49,8 @@ Routing
|
||||
* Removed `RouteCollectionBuilder`.
|
||||
* Added argument `$priority` to `RouteCollection::add()`
|
||||
* Removed the `RouteCompiler::REGEX_DELIMITER` constant
|
||||
|
||||
Security
|
||||
--------
|
||||
|
||||
* Removed `ROLE_PREVIOUS_ADMIN` role in favor of `IS_IMPERSONATOR` attribute
|
||||
|
Reference in New Issue
Block a user