From d26bc5f16b26e6e28d1ce952f7f6fd2c36e88411 Mon Sep 17 00:00:00 2001 From: "mkanat%bugzilla.org" <> Date: Mon, 5 Feb 2007 00:23:20 +0000 Subject: Bug 358354: WebService should perform a login in xmlrpc.cgi Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- Bugzilla/WebService.pm | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'Bugzilla/WebService.pm') 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; -- cgit v1.2.3-24-g4f1b