File tree 1 file changed +2
-2
lines changed
Filter options
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:
103
103
</a>
104
104
<?php endif ?>
105
105
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
107
107
user rather than the impersonated user. Use the following snippet to iterate
108
108
over the user's roles until you find one that a ``SwitchUserRole `` object::
109
109
@@ -115,7 +115,7 @@ over the user's roles until you find one that a ``SwitchUserRole`` object::
115
115
if ($authChecker->isGranted('ROLE_PREVIOUS_ADMIN')) {
116
116
foreach ($tokenStorage->getToken()->getRoles() as $role) {
117
117
if ($role instanceof SwitchUserRole) {
118
- $impersonatingUser = $role->getSource()->getUser();
118
+ $impersonatorUser = $role->getSource()->getUser();
119
119
break;
120
120
}
121
121
}
You can’t perform that action at this time.
0 commit comments