diff options
author | mkanat%bugzilla.org <> | 2007-03-17 02:16:43 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-03-17 02:16:43 +0100 |
commit | 832b52161f35aaa7ddf03168b540c5867f33dfe8 (patch) | |
tree | d46b05daba365e7266c13012f75619fd2455171a | |
parent | 9d49c338c438c62b5c7c5d09be6351659d932f10 (diff) | |
download | bugzilla-832b52161f35aaa7ddf03168b540c5867f33dfe8.tar.gz bugzilla-832b52161f35aaa7ddf03168b540c5867f33dfe8.tar.xz |
Bug 373639: Bugzilla->login should just return Bugzilla->user if Bugzilla->user->id != 0
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit
-rw-r--r-- | Bugzilla.pm | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Bugzilla.pm b/Bugzilla.pm index 473d959fc..302a4c0ee 100644 --- a/Bugzilla.pm +++ b/Bugzilla.pm @@ -208,7 +208,7 @@ sub sudo_request { sub login { my ($class, $type) = @_; - return Bugzilla->user if Bugzilla->usage_mode == USAGE_MODE_EMAIL; + return Bugzilla->user if Bugzilla->user->id; my $authorizer = new Bugzilla::Auth(); $type = LOGIN_REQUIRED if Bugzilla->cgi->param('GoAheadAndLogIn'); |