diff options
author | Julius Härtl <jus@bitgrid.net> | 2021-05-14 15:12:04 +0300 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2021-05-14 15:12:04 +0300 |
commit | be562a41329fccb7c6bdc8d1a5e2e1e187a10869 (patch) | |
tree | 82c47ab495c2a1bda07666d7b21e27fab8d5d820 | |
parent | 028785be4d0953c4ac42a73d15ae20fc942da84e (diff) |
Only return workspace property for top node in a propfind request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
-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()); |