We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 5c54a3c + 6c4b0db commit b6e3009Copy full SHA for b6e3009
1 file changed
apps/files_sharing/lib/Controller/ShareAPIController.php
@@ -1078,8 +1078,11 @@ public function getInheritedShares(string $path): DataResponse {
1078
// generate node list for each parent folders
1079
/** @var Node[] $nodes */
1080
$nodes = [];
1081
- while ($node->getPath() !== $basePath) {
+ while (true) {
1082
$node = $node->getParent();
1083
+ if ($node->getPath() === $basePath) {
1084
+ break;
1085
+ }
1086
$nodes[] = $node;
1087
}
1088
0 commit comments