Skip to content

Commit ce9c708

Browse files
MAGETWO-85587: [2.3-develop] Fixes #12660 invalid parameter configuration provided for argument #12665
2 parents d6a25b9 + 5019b52 commit ce9c708

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

lib/internal/Magento/Framework/View/Element/UiComponentFactory.php

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,14 @@ protected function createChildComponent(
147147
}
148148
$components = array_filter($components);
149149
$componentArguments['components'] = $components;
150+
151+
/**
152+
* Prevent passing ACL restricted blocks to htmlContent constructor
153+
*/
154+
if (isset($componentArguments['block']) && !$componentArguments['block']) {
155+
return null;
156+
}
157+
150158
if (!isset($componentArguments['context'])) {
151159
$componentArguments['context'] = $renderContext;
152160
}

0 commit comments

Comments
 (0)