Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/text.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-05-14 15:12:04 +0300
committerJulius Härtl <jus@bitgrid.net>2021-05-14 15:12:04 +0300
commitbe562a41329fccb7c6bdc8d1a5e2e1e187a10869 (patch)
tree82c47ab495c2a1bda07666d7b21e27fab8d5d820 /lib
parent028785be4d0953c4ac42a73d15ae20fc942da84e (diff)
Only return workspace property for top node in a propfind request
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib')
-rw-r--r--lib/DAV/WorkspacePlugin.php4
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());