|
@@ -123,6 +123,7 @@ class PageService {
|
|
|
const readStream = new PageQueryBuilder(Page.find())
|
|
const readStream = new PageQueryBuilder(Page.find())
|
|
|
.addConditionToExcludeRedirect()
|
|
.addConditionToExcludeRedirect()
|
|
|
.addConditionToListOnlyDescendants(page.path)
|
|
.addConditionToListOnlyDescendants(page.path)
|
|
|
|
|
+ .addConditionToFilteringByViewer(user)
|
|
|
.query
|
|
.query
|
|
|
.lean()
|
|
.lean()
|
|
|
.cursor();
|
|
.cursor();
|