File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
107107user rather than the impersonated user. Use the following snippet to iterate
108108over 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 }
You can’t perform that action at this time.
0 commit comments