|
|
|
@ -770,7 +770,8 @@ class View { |
|
|
|
$this->changeLock($path1, ILockingProvider::LOCK_EXCLUSIVE, true); |
|
|
|
$this->changeLock($path2, ILockingProvider::LOCK_EXCLUSIVE, true); |
|
|
|
|
|
|
|
if ($internalPath1 === '' and $mount1 instanceof MoveableMount) { |
|
|
|
if ($internalPath1 === '') { |
|
|
|
if ($mount1 instanceof MoveableMount) { |
|
|
|
if ($this->isTargetAllowed($absolutePath2)) { |
|
|
|
/** |
|
|
|
* @var \OC\Files\Mount\MountPoint | \OC\Files\Mount\MoveableMount $mount1 |
|
|
|
@ -781,6 +782,9 @@ class View { |
|
|
|
} else { |
|
|
|
$result = false; |
|
|
|
} |
|
|
|
} else { |
|
|
|
$result = false; |
|
|
|
} |
|
|
|
// moving a file/folder within the same mount point
|
|
|
|
} elseif ($storage1 === $storage2) { |
|
|
|
if ($storage1) { |
|
|
|
|