diff --git a/src/lib/Permission/PermissionChecker.php b/src/lib/Permission/PermissionChecker.php index 372d0b913c..a0ff1efe20 100644 --- a/src/lib/Permission/PermissionChecker.php +++ b/src/lib/Permission/PermissionChecker.php @@ -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] );