From 832b52161f35aaa7ddf03168b540c5867f33dfe8 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Sat, 17 Mar 2007 01:16:43 +0000 Subject: Bug 373639: Bugzilla->login should just return Bugzilla->user if Bugzilla->user->id != 0 Patch By Max Kanat-Alexander r=LpSolit, a=LpSolit --- Bugzilla.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla.pm') 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'); -- cgit v1.2.3-24-g4f1b