diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 401b760847f..a7c7e896b06 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -93,7 +93,9 @@ public function propFind(PropFind $propFind, INode $node) { if (!$workspaceAvailable || !$workspaceEnabled) { return; } - if ($propFind->getDepth() > 0) { + + // Only return the property for the parent node and ignore it for further in depth nodes + if ($propFind->getDepth() === $this->server->getHTTPDepth()) { $propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) { /** @var Folder[] $nodes */ $nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());