Skip to content

Commit

Permalink
MAGETWO-85587: [2.3-develop] Fixes #12660 invalid parameter configura…
Browse files Browse the repository at this point in the history
…tion provided for argument #12665
  • Loading branch information
ishakhsuvarov authored Dec 14, 2017
2 parents d6a25b9 + 5019b52 commit ce9c708
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 ce9c708

Please sign in to comment.