From 16122921b2f68b490a61cd80ae9ea5ee661ae11b Mon Sep 17 00:00:00 2001 From: David Lawrence Date: Wed, 21 Jan 2015 20:37:49 +0000 Subject: Bug 1090275: WebServices modules should maintain a whitelist of methods that are allowed instead of allowing access to any function imported into its namespace r=dylan,a=glob --- Bugzilla/WebService/BugUserLastVisit.pm | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Bugzilla/WebService/BugUserLastVisit.pm') diff --git a/Bugzilla/WebService/BugUserLastVisit.pm b/Bugzilla/WebService/BugUserLastVisit.pm index a29d2633b..19a56ff46 100644 --- a/Bugzilla/WebService/BugUserLastVisit.pm +++ b/Bugzilla/WebService/BugUserLastVisit.pm @@ -18,6 +18,11 @@ use Bugzilla::Error; use Bugzilla::WebService::Util qw( validate filter ); use Bugzilla::Constants; +use constant PUBLIC_METHODS => qw( + get + update +); + sub update { my ($self, $params) = validate(@_, 'ids'); my $user = Bugzilla->user; -- cgit v1.2.3-24-g4f1b