moving ->getParent earlier

Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
Maxence Lange 2020-01-08 08:56:14 -01:00
parent 69ae7abe72
commit 554c4a7cf8
1 changed files with 1 additions and 1 deletions

View File

@ -865,8 +865,8 @@ class ShareAPIController extends OCSController {
/** @var Node[] $nodes */
$nodes = [];
while ($node->getPath() !== $basePath) {
$nodes[] = $node;
$node = $node->getParent();
$nodes[] = $node;
}
// for each nodes, retrieve shares.