Bug 337683: The user prefs tab let you change the password and email address of a user being impersonated when using the ENV method (with user_info_class="Env,CGI") - Patch by Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit a=justdave

This commit is contained in:
lpsolit%gmail.com 2006-05-15 16:31:28 +00:00
parent a29a59f958
commit 1ea21b63e9

View File

@ -189,6 +189,9 @@ sub login {
{
$_user = $sudo_target;
$_sudoer = $authenticated_user;
# And make sure that both users have the same Auth object,
# since we never call Auth::login for the sudo target.
$_user->set_authorizer($_sudoer->authorizer);
# NOTE: If you want to do any special logging, do it here.
}