mirror of
https://github.com/nextcloud/server.git
synced 2026-04-21 22:27:31 -04:00
Merge pull request #47044 from nextcloud/fix/accept-several-mounts-in-encryption
fix(encryption): Fix mountpoint check to accept if several are found
This commit is contained in:
commit
609fa7d5db
1 changed files with 1 additions and 1 deletions
|
|
@ -777,7 +777,7 @@ class Encryption extends Wrapper {
|
|||
// first copy the keys that we reuse the existing file key on the target location
|
||||
// and don't create a new one which would break versions for example.
|
||||
$mount = $this->mountManager->findByStorageId($sourceStorage->getId());
|
||||
if (count($mount) === 1) {
|
||||
if (count($mount) >= 1) {
|
||||
$mountPoint = $mount[0]->getMountPoint();
|
||||
$source = $mountPoint . '/' . $sourceInternalPath;
|
||||
$target = $this->getFullPath($targetInternalPath);
|
||||
|
|
|
|||
Loading…
Reference in a new issue