Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 6509fc9

Browse filesBrowse files
committed
Use "impersonator user" instead of "impersonating user"
1 parent 9008929 commit 6509fc9
Copy full SHA for 6509fc9

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎security/impersonating_user.rst

Copy file name to clipboardExpand all lines: security/impersonating_user.rst
+2-2Lines 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.