Commit c698db32 authored by Frédéric Buclin's avatar Frédéric Buclin

Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the…

Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the user is not logged in r=dkl a=glob
parent 59b3d54d
......@@ -14,8 +14,7 @@ use warnings;
use Bugzilla::API::1_0::Util;
use Bugzilla::Constants;
use Bugzilla::Util qw(datetime_from);
use Bugzilla::Util qw(trick_taint);
use Bugzilla::Util qw(datetime_from trick_taint);
use DateTime;
use Moo;
......@@ -200,7 +199,7 @@ sub last_audit_time {
sub parameters {
my ($self, $args) = @_;
my $user = Bugzilla->login();
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $params = Bugzilla->params;
$args ||= {};
......
......@@ -153,7 +153,7 @@ sub last_audit_time {
sub parameters {
my ($self, $args) = @_;
my $user = Bugzilla->login();
my $user = Bugzilla->login(LOGIN_OPTIONAL);
my $params = Bugzilla->params;
$args ||= {};
......
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