Skip to content

Commit be562a4

Browse files
committed
Only return workspace property for top node in a propfind request
Signed-off-by: Julius Härtl <[email protected]>
1 parent 028785b commit be562a4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/DAV/WorkspacePlugin.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ public function propFind(PropFind $propFind, INode $node) {
9393
if (!$workspaceAvailable || !$workspaceEnabled) {
9494
return;
9595
}
96-
if ($propFind->getDepth() > 0) {
96+
97+
// Only return the property for the parent node and ignore it for further in depth nodes
98+
if ($propFind->getDepth() === $this->server->getHTTPDepth()) {
9799
$propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) {
98100
/** @var Folder[] $nodes */
99101
$nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());

0 commit comments

Comments
 (0)