diff options
-rw-r--r-- | lib/DAV/WorkspacePlugin.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/DAV/WorkspacePlugin.php b/lib/DAV/WorkspacePlugin.php index 401b76084..a7c7e896b 100644 --- a/lib/DAV/WorkspacePlugin.php +++ b/lib/DAV/WorkspacePlugin.php @@ -93,7 +93,9 @@ class WorkspacePlugin extends ServerPlugin { 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()); |