Commit 832b5216 authored by mkanat%bugzilla.org's avatar mkanat%bugzilla.org

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
parent 9d49c338
......@@ -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');
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment