]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes...
authorDavid Lawrence <dkl@mozilla.com>
Fri, 23 Jan 2015 17:29:30 +0000 (17:29 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 23 Jan 2015 17:29:30 +0000 (17:29 +0000)
r=dylan,a=glob

Bugzilla/WebService/Server/JSONRPC.pm

index 1f1840d4b205773961fc82665944c7d59153641d..6586a9bb8dfe5d712f373f66edd5e02144da5be7 100644 (file)
@@ -390,7 +390,7 @@ sub _argument_type_check {
 
     # Only allowed methods to be used from our whitelist
     if (none { $_ eq $method} $pkg->PUBLIC_METHODS) {
-        ThrowUserError('unknown_method', { method => $self->bz_method_name });
+        ThrowCodeError('unknown_method', { method => $self->_bz_method_name });
     }
 
     # This is the best time to do login checks.