diff --git a/eZ/Publish/Core/Repository/LocationService.php b/eZ/Publish/Core/Repository/LocationService.php index cbf8dfe6a35..e2cdc4b0657 100644 --- a/eZ/Publish/Core/Repository/LocationService.php +++ b/eZ/Publish/Core/Repository/LocationService.php @@ -382,7 +382,7 @@ public function createLocation(ContentInfo $contentInfo, LocationCreateStruct $l $content = $this->repository->getContentService()->loadContent($contentInfo->id); $parentLocation = $this->loadLocation($locationCreateStruct->parentLocationId); - if (!$this->repository->canUser('content', 'manage_locations', $content->contentInfo, $parentLocation)) { + if (!$this->repository->canUser('content', 'manage_locations', $content->contentInfo)) { throw new UnauthorizedException('content', 'manage_locations'); }