summaryrefslogtreecommitdiffstats
path: root/Bugzilla/WebService/User.pm
diff options
context:
space:
mode:
authorDave Lawrence <dlawrence@mozilla.com>2012-02-24 22:35:24 +0100
committerDave Lawrence <dlawrence@mozilla.com>2012-02-24 22:35:24 +0100
commit8b618be9d40747ae0477ac67e59213687626652f (patch)
treee7c48f9d080bbcc4de39162b1267ab5b9f76cddb /Bugzilla/WebService/User.pm
parent8eb3b175a88f5c207991d86fbfae9c83f9a735a4 (diff)
downloadbugzilla-8b618be9d40747ae0477ac67e59213687626652f.tar.gz
bugzilla-8b618be9d40747ae0477ac67e59213687626652f.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 60bae73df..908fe00ce 100644
--- a/Bugzilla/WebService/User.pm
+++ b/Bugzilla/WebService/User.pm
@@ -114,6 +114,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',