From c698db3265df91ad80b2e1391bd4a450a9942aae Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fr=C3=A9d=C3=A9ric=20Buclin?= Date: Fri, 24 Apr 2015 18:38:39 +0200 Subject: [PATCH] Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the user is not logged in r=dkl a=glob --- Bugzilla/API/1_0/Resource/Bugzilla.pm | 5 ++--- Bugzilla/WebService/Bugzilla.pm | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) 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 ||= {}; -- 2.47.2