From: Frédéric Buclin Date: Fri, 24 Apr 2015 16:38:39 +0000 (+0200) Subject: Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the... X-Git-Tag: release-5.1.1~271 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c698db3265df91ad80b2e1391bd4a450a9942aae;p=thirdparty%2Fbugzilla.git Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the user is not logged in r=dkl a=glob --- diff --git a/Bugzilla/API/1_0/Resource/Bugzilla.pm b/Bugzilla/API/1_0/Resource/Bugzilla.pm index 8a0c6baac7..b2e7105f62 100644 --- a/Bugzilla/API/1_0/Resource/Bugzilla.pm +++ b/Bugzilla/API/1_0/Resource/Bugzilla.pm @@ -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 ||= {}; diff --git a/Bugzilla/WebService/Bugzilla.pm b/Bugzilla/WebService/Bugzilla.pm index f94ea55c97..e1d1b62a1d 100644 --- a/Bugzilla/WebService/Bugzilla.pm +++ b/Bugzilla/WebService/Bugzilla.pm @@ -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 ||= {};