]> 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:26:58 +0000 (17:26 +0000)
committerDavid Lawrence <dkl@mozilla.com>
Fri, 23 Jan 2015 17:26:58 +0000 (17:26 +0000)
r=dylan,a=glob

Bugzilla/WebService/Server/JSONRPC.pm

index f1b31cfd036a58199d9cb6e99a9f68a55cee4923..1b0e20d607538f5f6181f4abca09df29bfcc0c49 100644 (file)
@@ -391,7 +391,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.