mirror of
https://github.com/nextcloud/server.git
synced 2026-06-07 15:53:04 -04:00
Merge pull request #47067 from nextcloud/backport/47043/stable28
[stable28] fix(inherited-shares): ignore top root folder
This commit is contained in:
commit
d611843651
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