symfony/symfony — pull request #8997 by pawaclawczyk (2013-09-11 19:50:24+00:00)
Title: [Security] Fixed problem with losing ROLE_PREVIOUS_ADMIN role.

Q
A

Bug fix?
yes

New feature
no

BC breaks?
no

Deprecations?
no

Tests pass?
yes

Fixed tickets
#3085, #8974

License
MIT

Doc PR
n/a

Problem occurs while user is impersonated. Authentication process generates new token and doeas not preserve role ```ROLE_PREVIOUS_ADMIN```. Ex. when parameter ```security.always_authenticate_before_granting``` is enabled.