Merge pull request #284 from CartoDB/issue-280

Add user from params to fakereq object
This commit is contained in:
Raul Ochoa 2015-04-08 11:37:14 +02:00
commit 136f68765a

View File

@ -408,7 +408,12 @@ TemplateMapsController.prototype.instantiateTemplate = function(req, res, templa
if ( req.profiler ) req.profiler.done('TemplateMaps_instance');
if ( err ) throw err;
layergroup = instance;
fakereq = {query: {}, params: {}, headers: _.clone(req.headers),
fakereq = {
query: {},
params: {
user: req.params.user
},
headers: _.clone(req.headers),
context: _.clone(req.context),
method: req.method,
res: res,