Merge pull request #284 from CartoDB/issue-280
Add user from params to fakereq object
This commit is contained in:
commit
136f68765a
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user