10000 minor #35895 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide (… · symfony/symfony@4520e61 · GitHub
[go: up one dir, main page]

Skip to content

Commit 4520e61

Browse files
committed
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 #35858 Commits ------- 3c8d316 Added ROLE_PREVIOUS_ADMIN deprecation to UPGRADE guide
2 parents eff7d14 + 3c8d316 commit 4520e61

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

UPGRADE-5.1.md

Lines 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

Lines 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