]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 373639: Bugzilla->login should just return Bugzilla->user if Bugzilla->user-...
authormkanat%bugzilla.org <>
Sat, 17 Mar 2007 01:16:43 +0000 (01:16 +0000)
committermkanat%bugzilla.org <>
Sat, 17 Mar 2007 01:16:43 +0000 (01:16 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=LpSolit

Bugzilla.pm

index 473d959fc96649174339f4486ec358d9b856fd82..302a4c0ee8abfc744c034616d0571322d3541c58 100644 (file)
@@ -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');