summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService.pm
diff options
context:
space:
mode:
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;