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/EditComments/lib/WebService.pm | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'extensions/EditComments/lib') diff --git a/extensions/EditComments/lib/WebService.pm b/extensions/EditComments/lib/WebService.pm index 9213f0407..2621e5f4a 100644 --- a/extensions/EditComments/lib/WebService.pm +++ b/extensions/EditComments/lib/WebService.pm @@ -16,6 +16,10 @@ use Bugzilla::Error; use Bugzilla::Util qw(trim); use Bugzilla::WebService::Util qw(validate); +use constant PUBLIC_METHODS => qw( + comments +); + sub comments { my ($self, $params) = validate(@_, 'comment_ids'); my $dbh = Bugzilla->switch_to_shadow_db(); -- cgit v1.2.3-24-g4f1b