Skip to content

Commit

Permalink
Merge branch '6.13' into 7.1
Browse files Browse the repository at this point in the history
  • Loading branch information
andrerom committed Jun 25, 2018
2 parents c379807 + b194201 commit a421cf6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion eZ/Publish/Core/Limitation/OwnerLimitationType.php
Expand Up @@ -142,7 +142,7 @@ public function evaluate(APILimitationValue $value, APIUserReference $currentUse
* @var $object ContentInfo
*/
$isOwner = $object->ownerId === $userId;
$isSelf = $object->id === $userId;
$isSelf = $object instanceof ContentInfo && $object->id === $userId;

return $isOwner || $isSelf;
}
Expand Down

0 comments on commit a421cf6

Please sign in to comment.