Pass config to the nested publications in recursiveCompose

This commit is contained in:
Berislav 2018-10-25 02:27:13 -07:00
parent 7635337c37
commit eedf87c67a

View file

@ -41,14 +41,14 @@ function compose(node, userId, config) {
}
const cursor = accessor.find(filters, options, userId);
if (config && config.scoped) {
if (config.scoped) {
patchCursor(cursor, getNodeNamespace(node));
}
return cursor;
}
},
children: _.map(node.collectionNodes, n => compose(n, userId))
children: _.map(node.collectionNodes, n => compose(n, userId, config))
}
}