summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2006-05-16 01:31:28 +0200
committerlpsolit%gmail.com <>2006-05-16 01:31:28 +0200
commitb3f2421ee9f1a37d3a1fba416fc91b0f66299551 (patch)
treeefd2d39cc5b88e71cfeae39af9ee8080ef8c944c /Bugzilla.pm
parentfc2b9ab2a1615874a26b0d9e921a54856df379ad (diff)
downloadbugzilla-b3f2421ee9f1a37d3a1fba416fc91b0f66299551.tar.gz
bugzilla-b3f2421ee9f1a37d3a1fba416fc91b0f66299551.tar.xz
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
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm3
1 files changed, 3 insertions, 0 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index b3c6ba7ce..d72dba70f 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -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.
}