Skip to content

Commit

Permalink
Merge branch '6.13' into 7.0
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Mar 21, 2018
2 parents 4c1dbe4 + bff9cdb commit 9f8c871
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eZ/Publish/Core/Repository/LocationService.php
Expand Up @@ -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');
}

Expand Down

0 comments on commit 9f8c871

Please sign in to comment.