8000 minor #8320 [Security] Use "impersonator user" instead of "impersonat… · symfony/symfony-docs@b8dcdf9 · GitHub
[go: up one dir, main page]

Skip to content

Commit b8dcdf9

Browse files
committed
minor #8320 [Security] Use "impersonator user" instead of "impersonating user" (chalasr)
This PR was merged into the 2.7 branch. Discussion ---------- [Security] Use "impersonator user" instead of "impersonating user" Feels better to me, it's also consistent with the profiler's security panel (and a log being introduced in symfony/symfony#24026). Commits ------- 6509fc9 Use "impersonator user" instead of "impersonating user"
2 parents ae7e195 + 6509fc9 commit b8dcdf9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

security/impersonating_user.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ to show a link to exit impersonation:
103103
</a>
104104
<?php endif ?>
105105

106-
In some cases you may need to get the object that represents the impersonating
106+
In some cases you may need to get the object that represents the impersonator
107107
user rather than the impersonated user. Use the following snippet to iterate
108108
over the user's roles until you find one that a ``SwitchUserRole`` object::
109109

@@ -115,7 +115,7 @@ over the user's roles until you find one that a ``SwitchUserRole`` object::
115115
if ($authChecker->isGranted('ROLE_PREVIOUS_ADMIN')) {
116116
foreach ($tokenStorage->getToken()->getRoles() as $role) {
117117
if ($role instanceof SwitchUserRole) {
118-
$impersonatingUser = $role->getSource()->getUser();
118+
$impersonatorUser = $role->getSource()->getUser();
119119
break;
120120
}
121121
}

0 commit comments

Comments
 (0)
0