diff options
author | mkanat%bugzilla.org <> | 2007-02-05 01:23:20 +0100 |
---|---|---|
committer | mkanat%bugzilla.org <> | 2007-02-05 01:23:20 +0100 |
commit | d26bc5f16b26e6e28d1ce952f7f6fd2c36e88411 (patch) | |
tree | b953958a9f9cfe5d94a09e86696d08469e4e84e1 /Bugzilla/WebService.pm | |
parent | 5d158911752d6135900efc160569fa2d8afcb076 (diff) | |
download | bugzilla-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-x | Bugzilla/WebService.pm | 7 |
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; |