Skip to content

Commit 6509fc9

Browse files
committed
Use "impersonator user" instead of "impersonating user"
1 parent 9008929 commit 6509fc9

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)