summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Bugzilla.pm2
1 files changed, 1 insertions, 1 deletions
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');