Skip to content

Commit 1c81015

Browse files
author
Oleksandr Iegorov
committed
MC-42528: [GraphQl]Categories and categoryList queries ignore the Category permission to hide categories in a shared catalog
1 parent 43cee30 commit 1c81015

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

app/code/Magento/CatalogGraphQl/Model/Resolver/Products/DataProvider/ExtractDataFromCategoryTree.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -160,6 +160,8 @@ private function sortTree(array $tree): array
160160
if (isset($node['children_count'])) {
161161
$node['children_count'] = count($node['children']);
162162
}
163+
} elseif (isset($node['children_count'])) {
164+
$node['children_count'] = 0;
163165
}
164166
}
165167

0 commit comments

Comments
 (0)