Skip to content

Commit 3a358e1

Browse files
Check ACL before showing ns
Fixes samuelet#309
1 parent 6936bfc commit 3a358e1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Search.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,9 @@ private function makeNodes(&$data, $indexLatestParsedItem, $previousLevel, &$nod
191191

192192
if ($item['type'] === 'f' || !empty($node['children']) || isset($node['lazy']) || $item['hns'] !== false) {
193193
// add only files, non-empty folders, lazy-loaded or folder with only a headpage
194-
$nodes[] = $node;
194+
if(auth_quickaclcheck($item['id'])) {
195+
$nodes[] = $node;
196+
}
195197
}
196198

197199
$previousLevel = $item['level'];

0 commit comments

Comments
 (0)