From 5426a2b6d124b4d4a763db5bed7f5ba445d79c85 Mon Sep 17 00:00:00 2001 From: Byron Jones Date: Tue, 3 Feb 2015 16:07:11 +0800 Subject: Bug 1128832: don't create api_tokens when pointing to the shadow_db --- Bugzilla/Template.pm | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 9f007bb6d..17d4008f7 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -1040,6 +1040,8 @@ sub create { 'get_api_token' => sub { return '' unless Bugzilla->user->id; + # BMO - hack so we don't create tokens when pointing to the shadow_db + return '' if Bugzilla->is_shadow_db; my $cache = Bugzilla->request_cache; return $cache->{api_token} //= issue_api_token(); }, -- cgit v1.2.3-24-g4f1b