Bug 1124716: regression caused by bug 1090275 to whitelist webservice methods causes test failures with t/012throwables.t

r=dylan,a=glob


git-svn-id: svn://10.0.0.236/branches/BUGZILLA-4_0-BRANCH@265795 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
bzrmirror%bugzilla.org
2015-01-23 17:45:45 +00:00
parent 0d2763fe01
commit cbf3136026
3 changed files with 3 additions and 3 deletions

View File

@@ -1 +1 @@
7805
7806

View File

@@ -1 +1 @@
c4dbb67945543139570a1859812cd0642aed47d5
2ba08235aae379dd32d821de4007cb3bcb37d48b

View 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.