summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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.
}