mirror of
https://github.com/nextcloud/server.git
synced 2026-05-26 19:32:28 -04:00
fix(inherited-shares): ignore top root folder
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
bbe667a7e5
commit
7930ca1468
1 changed files with 4 additions and 1 deletions
|
|
@ -1085,8 +1085,11 @@ class ShareAPIController extends OCSController {
|
|||
// generate node list for each parent folders
|
||||
/** @var Node[] $nodes */
|
||||
$nodes = [];
|
||||
while ($node->getPath() !== $basePath) {
|
||||
while (true) {
|
||||
$node = $node->getParent();
|
||||
if ($node->getPath() === $basePath) {
|
||||
break;
|
||||
}
|
||||
$nodes[] = $node;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue