We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d6a25b9 + 5019b52 commit ce9c708Copy full SHA for ce9c708
lib/internal/Magento/Framework/View/Element/UiComponentFactory.php
@@ -147,6 +147,14 @@ protected function createChildComponent(
147
}
148
$components = array_filter($components);
149
$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
158
if (!isset($componentArguments['context'])) {
159
$componentArguments['context'] = $renderContext;
160
0 commit comments