From 037ce2dc12f2507a31caed491b9f189f1521e35a Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Fri, 27 Jun 2014 00:48:48 +0100 Subject: [PATCH] CDB-2891 Exposes username as search_path in params --- lib/cartodb/server_options.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/cartodb/server_options.js b/lib/cartodb/server_options.js index a98e09ae..52569b24 100644 --- a/lib/cartodb/server_options.js +++ b/lib/cartodb/server_options.js @@ -802,6 +802,8 @@ module.exports = function(){ // for cartodb, ensure interactivity is cartodb_id or user specified req.params.interactivity = req.params.interactivity || 'cartodb_id'; + req.params.search_path = user; + var that = this; if (req.profiler) req.profiler.done('req2params.setup');