summaryrefslogtreecommitdiffstats
path: root/Bugzilla.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-03-17 02:16:43 +0100
committermkanat%bugzilla.org <>2007-03-17 02:16:43 +0100
commit832b52161f35aaa7ddf03168b540c5867f33dfe8 (patch)
treed46b05daba365e7266c13012f75619fd2455171a /Bugzilla.pm
parent9d49c338c438c62b5c7c5d09be6351659d932f10 (diff)
downloadbugzilla-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
Diffstat (limited to 'Bugzilla.pm')
-rw-r--r--Bugzilla.pm2
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');