зеркало из https://github.com/nextcloud/text.git
Assume that the default depth is 1 in DAV
Otherwise if the Depth header is ommited, the workspace information won't be display at all. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
This commit is contained in:
Родитель
82b1234031
Коммит
4f5a37dcbd
|
@ -96,7 +96,7 @@ class WorkspacePlugin extends ServerPlugin {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Only return the property for the parent node and ignore it for further in depth nodes
|
// Only return the property for the parent node and ignore it for further in depth nodes
|
||||||
if ($propFind->getDepth() === $this->server->getHTTPDepth()) {
|
if ($propFind->getDepth() === $this->server->getHTTPDepth(1)) {
|
||||||
$propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) {
|
$propFind->handle(self::WORKSPACE_PROPERTY, function () use ($node) {
|
||||||
/** @var Folder[] $nodes */
|
/** @var Folder[] $nodes */
|
||||||
$nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());
|
$nodes = $this->rootFolder->getUserFolder($this->userId)->getById($node->getId());
|
||||||
|
|
Загрузка…
Ссылка в новой задаче