Skip to content

Commit

Permalink
Revert "Only return workspace property for top node in a propfind req…
Browse files Browse the repository at this point in the history
…uest"

This reverts commit be562a4.
  • Loading branch information
max-nextcloud committed Jun 22, 2022
1 parent 827f902 commit 21f21f4
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions lib/DAV/WorkspacePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ public function propFind(PropFind $propFind, INode $node) {
if (!$workspaceAvailable || !$workspaceEnabled) {
return;
}

// Only return the property for the parent node and ignore it for further in depth nodes
if ($propFind->getDepth() === $this->server->getHTTPDepth(1)) {
if ($propFind->getDepth() > 0) {
$propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) {
$owner = $this->userId ?? $node->getFileInfo()->getStorage()->getOwner('');
/** @var Folder[] $nodes */
Expand Down

0 comments on commit 21f21f4

Please sign in to comment.