aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2005-10-31 05:31:27 +0000
committerlpsolit%gmail.com <>2005-10-31 05:31:27 +0000
commit1254fcb8c43defcbce99713f5cd85a104670895e (patch)
tree3b842a5b96f429d0db2d5ade3ba409cf1fae7e5a /Bugzilla.pm
parentBug 314088: Several Bugzilla::Foo->new crash when passing a string instead of... (diff)
downloadbugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.gz
bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.tar.bz2
bugzilla-1254fcb8c43defcbce99713f5cd85a104670895e.zip
Bug 304075: Eliminate use of $::userid from Bugzilla - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wicked a=justdave
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm4
1 files changed, 0 insertions, 4 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm
index a86e799eb..de30d8c99 100644
--- a/Bugzilla.pm
+++ b/Bugzilla.pm
@@ -145,7 +145,6 @@ sub sudo_request {
$_user = $new_user;
$_sudoer = $new_sudoer;
- $::userid = $new_user->id;
# NOTE: If you want to log the start of an sudo session, do it here.
@@ -177,7 +176,6 @@ sub login {
{
$_user = $sudo_target;
$_sudoer = $authenticated_user;
- $::userid = $sudo_target->id;
# NOTE: If you want to do any special logging, do it here.
}
@@ -216,8 +214,6 @@ sub logout_user_by_id {
sub logout_request {
undef $_user;
undef $_sudoer;
- # XXX clean this up eventually
- $::userid = 0;
# We can't delete from $cgi->cookie, so logincookie data will remain
# there. Don't rely on it: use Bugzilla->user->login instead!
}