summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/User.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-02-24 23:00:41 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-02-24 23:00:41 +0100
commit565b1f2c146b5e62500f0775e2278ae9afa35674 (patch)
treed1712f8224504553ca0c835348120dc498c7769d /Bugzilla/WebService/User.pm
parent5948b276f8dff21ebe45e56e4c5cd54f2def3279 (diff)
downloadbugzilla-565b1f2c146b5e62500f0775e2278ae9afa35674.tar.gz
bugzilla-565b1f2c146b5e62500f0775e2278ae9afa35674.tar.xz
Bug 692507 - WebService API calls where appropriate should be using the shadow_db for read only operations
r=glob, a=LpSolit
Diffstat (limited to 'Bugzilla/WebService/User.pm')
-rw-r--r--Bugzilla/WebService/User.pm2
1 files changed, 2 insertions, 0 deletions
diff --git a/Bugzilla/WebService/User.pm b/Bugzilla/WebService/User.pm
index 90a07043c..9502770de 100644
--- a/Bugzilla/WebService/User.pm
+++ b/Bugzilla/WebService/User.pm
@@ -127,6 +127,8 @@ sub create {
sub get {
my ($self, $params) = validate(@_, 'names', 'ids');
+ Bugzilla->switch_to_shadow_db();
+
defined($params->{names}) || defined($params->{ids})
|| defined($params->{match})
|| ThrowCodeError('params_required',