summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService.pm
diff options
context:
space:
mode:
authormkanat%bugzilla.org <>2007-02-05 01:23:20 +0100
committermkanat%bugzilla.org <>2007-02-05 01:23:20 +0100
commitd26bc5f16b26e6e28d1ce952f7f6fd2c36e88411 (patch)
treeb953958a9f9cfe5d94a09e86696d08469e4e84e1 /Bugzilla/WebService.pm
parent5d158911752d6135900efc160569fa2d8afcb076 (diff)
downloadbugzilla-d26bc5f16b26e6e28d1ce952f7f6fd2c36e88411.tar.gz
bugzilla-d26bc5f16b26e6e28d1ce952f7f6fd2c36e88411.tar.xz
Bug 358354: WebService should perform a login in xmlrpc.cgi
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat
Diffstat (limited to 'Bugzilla/WebService.pm')
-rwxr-xr-xBugzilla/WebService.pm7
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/WebService.pm b/Bugzilla/WebService.pm
index b38596f2a..0f32e74be 100755
--- a/Bugzilla/WebService.pm
+++ b/Bugzilla/WebService.pm
@@ -41,6 +41,13 @@ sub datetime_format {
return $iso_datetime;
}
+sub handle_login {
+ my ($self, $module, $method) = @_;
+ my $exempt = LOGIN_EXEMPT->{$module};
+ return if $exempt && grep { $_ eq $method } @$exempt;
+ Bugzilla->login;
+}
+
package Bugzilla::WebService::XMLRPC::Transport::HTTP::CGI;
use strict;