minor #35895 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide (wouterj)

This PR was merged into the 5.1-dev branch.

Discussion
----------

Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide

| Q             | A
| ------------- | ---
| Branch?       | master
| Bug fix?      | no
| New feature?  | no
| Deprecations? | no
| Tickets       | n/a
| License       | MIT
| Doc PR        | n/a

I forgot to update the UPGRADE guides in https://github.com/symfony/symfony/pull/35858

Commits
-------

3c8d316f65 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide
This commit is contained in:
Fabien Potencier 2020-02-29 10:49:11 +01:00
commit 4520e61045
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