Skip to content

Commit

Permalink
EZP-31626: Fixed rendering of embed locations (#146)
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev authored May 14, 2020
1 parent 9acdf8a commit 8e1519e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bundle/eZ/RichText/Renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -542,14 +542,14 @@ function (Repository $repository) use ($id) {
new AuthorizationAttribute(
'content',
'read',
['valueObject' => $location->contentInfo, 'targets' => $location]
['valueObject' => $location->contentInfo, 'targets' => [$location]]
)
)
&& !$this->authorizationChecker->isGranted(
new AuthorizationAttribute(
'content',
'view_embed',
['valueObject' => $location->contentInfo, 'targets' => $location]
['valueObject' => $location->contentInfo, 'targets' => [$location]]
)
)
) {
Expand Down

0 comments on commit 8e1519e

Please sign in to comment.