From a748745d3eb9110b0c6bcd803d8d86db8951ad43 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 27 Jan 2015 11:47:42 +0800 Subject: Bug 1124437: Backport upstream bug 1090275 to bmo/4.2 to whitelist webservice api methods --- extensions/Example/lib/WebService.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'extensions/Example') diff --git a/extensions/Example/lib/WebService.pm b/extensions/Example/lib/WebService.pm index 8563ec7f0..bb83436e3 100644 --- a/extensions/Example/lib/WebService.pm +++ b/extensions/Example/lib/WebService.pm @@ -24,6 +24,11 @@ use warnings; use base qw(Bugzilla::WebService); use Bugzilla::Error; +use constant PUBLIC_METHODS => qw( + hello + throw_an_error +); + # This can be called as Example.hello() from the WebService. sub hello { return 'Hello!'; } -- cgit v1.2.3-24-g4f1b