summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2015-04-24 18:38:39 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2015-04-24 18:38:39 +0200
commitc698db3265df91ad80b2e1391bd4a450a9942aae (patch)
treeb488258b4a0d060c2157e9f400a7ff66ce2effd5
parent59b3d54d777c18a2d54b05b0988c7eae36f03d2e (diff)
downloadbugzilla-c698db3265df91ad80b2e1391bd4a450a9942aae.tar.gz
bugzilla-c698db3265df91ad80b2e1391bd4a450a9942aae.tar.xz
Bug 1157405: Bugzilla.parameters is not accessible when requirelogin = 1 and the user is not logged in
r=dkl a=glob
-rw-r--r--Bugzilla/API/1_0/Resource/Bugzilla.pm5
-rw-r--r--Bugzilla/WebService/Bugzilla.pm2
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 8a0c6baac..b2e7105f6 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 f94ea55c9..e1d1b62a1 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 ||= {};