Skip to content

Commit 9516978

Browse files
Fixes #12660 invalid parameter configuration provided for argument
1 parent eeed63e commit 9516978

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)