From 469b602484a9e6b2c29824e563ddd0a6563c7bd4 Mon Sep 17 00:00:00 2001 From: Raul Ochoa Date: Mon, 14 Sep 2015 18:46:22 +0200 Subject: [PATCH] Attributes backend using mapconfig provider to access attributes --- lib/cartodb/controllers/layergroup.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/lib/cartodb/controllers/layergroup.js b/lib/cartodb/controllers/layergroup.js index e0aa6b44..845f7eaf 100644 --- a/lib/cartodb/controllers/layergroup.js +++ b/lib/cartodb/controllers/layergroup.js @@ -59,7 +59,10 @@ LayergroupController.prototype.attributes = function(req, res) { assert.ifError(err); - self.attributesBackend.getFeatureAttributes(req.params, false, this); + var mapConfigProvider = new MapStoreMapConfigProvider( + self.mapStore, req.context.user, self.userLimitsApi, req.params + ); + self.attributesBackend.getFeatureAttributes(mapConfigProvider, req.params, false, this); }, function finish(err, tile, stats) { req.profiler.add(stats || {});