Skip to content

Commit

Permalink
MAGETWO-85580: Fixes #12660 invalid parameter configuration provided …
Browse files Browse the repository at this point in the history
…for argument #12661
  • Loading branch information
ishakhsuvarov authored Dec 13, 2017
2 parents 71d1610 + 47f52b3 commit f4e97f3
Showing 1 changed file with 8 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,14 @@ protected function createChildComponent(
}
$components = array_filter($components);
$componentArguments['components'] = $components;

/**
* Prevent passing ACL restricted blocks to htmlContent constructor
*/
if (isset($componentArguments['block']) && !$componentArguments['block']) {
return null;
}

if (!isset($componentArguments['context'])) {
$componentArguments['context'] = $renderContext;
}
Expand Down

0 comments on commit f4e97f3

Please sign in to comment.