mirror of
https://github.com/nextcloud/server.git
synced 2026-04-15 22:11:17 -04:00
fix: Fix orphan shares blocking moving other shares
Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
This commit is contained in:
parent
2080621ff3
commit
8d64e076ee
1 changed files with 6 additions and 1 deletions
|
|
@ -1883,7 +1883,12 @@ class View {
|
|||
}, $providers));
|
||||
|
||||
foreach ($shares as $share) {
|
||||
$sharedPath = $share->getNode()->getPath();
|
||||
try {
|
||||
$sharedPath = $share->getNode()->getPath();
|
||||
} catch (NotFoundException) {
|
||||
// node is not found, ignoring
|
||||
continue;
|
||||
}
|
||||
if ($targetPath === $sharedPath || str_starts_with($targetPath, $sharedPath . '/')) {
|
||||
$this->logger->debug(
|
||||
'It is not allowed to move one mount point into a shared folder',
|
||||
|
|
|
|||
Loading…
Reference in a new issue