diff options
author | bugreport%peshkin.net <> | 2004-07-31 09:27:23 +0000 |
---|---|---|
committer | bugreport%peshkin.net <> | 2004-07-31 09:27:23 +0000 |
commit | 4c1db37570469aef2c7cc9f2ad9f859560ca8851 (patch) | |
tree | 17a519e7f08a85993b710ecd6d809bd9e4b40211 /Bugzilla/Auth | |
parent | 1ffd632931b05caea45f9c48079b455d156086be (diff) | |
download | bugs-4c1db37570469aef2c7cc9f2ad9f859560ca8851.tar bugs-4c1db37570469aef2c7cc9f2ad9f859560ca8851.tar.gz bugs-4c1db37570469aef2c7cc9f2ad9f859560ca8851.tar.bz2 bugs-4c1db37570469aef2c7cc9f2ad9f859560ca8851.tar.xz bugs-4c1db37570469aef2c7cc9f2ad9f859560ca8851.zip |
Bug 253588: Change Bugzilla->user to be usable even for a logged-out user
patch by erik,joel
r=kiko
a=justdave
Diffstat (limited to 'Bugzilla/Auth')
-rw-r--r-- | Bugzilla/Auth/Login/WWW.pm | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Bugzilla/Auth/Login/WWW.pm b/Bugzilla/Auth/Login/WWW.pm index d18c758d9..def68df63 100644 --- a/Bugzilla/Auth/Login/WWW.pm +++ b/Bugzilla/Auth/Login/WWW.pm @@ -43,9 +43,7 @@ sub login { # Avoid double-logins, which may confuse the auth code # (double cookies, odd compat code settings, etc) - if (defined $user) { - return $user; - } + return $user if $user->id; $type = LOGIN_NORMAL unless defined $type; |