From: mkanat%bugzilla.org <> Date: Sat, 17 Mar 2007 01:17:49 +0000 (+0000) Subject: Bug 373639: Bugzilla->login should just return Bugzilla->user if Bugzilla->user-... X-Git-Tag: bugzilla-3.0~22 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0c77b043739ebbf3002449de42ed6a821f7b827e;p=thirdparty%2Fbugzilla.git Bug 373639: Bugzilla->login should just return Bugzilla->user if Bugzilla->user->id != 0 Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla.pm b/Bugzilla.pm index f278adb2e9..679695bf24 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');