Skip to content

Commit

Permalink
EZP-31814: Self owner limitation in a security role breaks the UDW
Browse files Browse the repository at this point in the history
  • Loading branch information
SerheyDolgushev committed Sep 18, 2020
1 parent 6c6311a commit 4aec03e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/lib/Permission/PermissionChecker.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,14 +210,14 @@ public function getContentCreateLimitations(Location $parentLocation): LookupLim

public function getContentUpdateLimitations(Location $location): LookupLimitationResult
{
$contentUpdateStruct = $this->contentService->newContentUpdateStruct();
$contentInfo = $location->getContentInfo();

$versionBuilder = new VersionBuilder();
$versionBuilder->translateToAnyLanguageOf($this->getActiveLanguageCodes());
$versionBuilder->createFromAnyContentTypeOf($this->getContentTypeIds());

return $this->permissionResolver->lookupLimitations('content', 'edit',
$contentUpdateStruct,
$contentInfo,
[$versionBuilder->build(), $location],
[Limitation::CONTENTTYPE, Limitation::LANGUAGE]
);
Expand Down

0 comments on commit 4aec03e

Please # to comment.