diff --git a/eZ/Publish/Core/Limitation/SubtreeLimitationType.php b/eZ/Publish/Core/Limitation/SubtreeLimitationType.php index 6fc1872d3d..6a856ad40a 100644 --- a/eZ/Publish/Core/Limitation/SubtreeLimitationType.php +++ b/eZ/Publish/Core/Limitation/SubtreeLimitationType.php @@ -74,7 +74,7 @@ public function validate(APILimitationValue $limitationValue) } catch (APINotFoundException $e) { } - if (!isset($spiLocation) || strpos($spiLocation->pathString, $path) !== 0) { + if (!isset($spiLocation) || $spiLocation->pathString !== $path) { $validationErrors[] = new ValidationError( "limitationValues[%key%] => '%value%' does not exist in the backend", null,