Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide

This commit is contained in:
Wouter de Jong 2020-02-28 12:18:46 +01:00
parent d0e5593b1f
commit 3c8d316f65
2 changed files with 24 additions and 0 deletions

View File

@ -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
----

View File

@ -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