mirror of
https://github.com/nextcloud/server.git
synced 2026-06-08 00:02:54 -04:00
fix(inherited-shares): ignore top root folder
Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
This commit is contained in:
parent
6d44811cff
commit
518dccaa14
1 changed files with 4 additions and 1 deletions
|
|
@ -1103,8 +1103,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