]> 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:17:49 +0000 (01:17 +0000)
committermkanat%bugzilla.org <>
Sat, 17 Mar 2007 01:17:49 +0000 (01:17 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla.pm

index f278adb2e934aaad6c4301d5749c69fbbaa7ac6b..679695bf24976ae37726734a5f8c5dc36c751b6e 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');