diff options
author | rawtaz <rawtaz@users.noreply.github.com> | 2020-07-11 16:51:40 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-11 16:51:40 +0200 |
commit | 618460477140f6c72a4ffe8acdfa9ba322bad2b3 (patch) | |
tree | 32107f0b7472772d39305e1476edb6233f70b7c4 | |
parent | 65f2dc538b9d1e6035b5b57dbfbef9ae833af33e (diff) | |
download | nextcloud-server-618460477140f6c72a4ffe8acdfa9ba322bad2b3.tar.gz nextcloud-server-618460477140f6c72a4ffe8acdfa9ba322bad2b3.zip |
Include e-mail shares when transferring ownership
E-mail shares weren't included in the processing of shares when using the `occ files:transfer-ownership` command, so they'd be lost (not visible in either the former or the new account). This commit fixes that.
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index 535822b999c..5f2345555b2 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -239,7 +239,7 @@ class OwnershipTransferService { $shares = []; $progress = new ProgressBar($output); - foreach ([IShare::TYPE_GROUP, IShare::TYPE_USER, IShare::TYPE_LINK, IShare::TYPE_REMOTE, IShare::TYPE_ROOM] as $shareType) { + foreach ([IShare::TYPE_GROUP, IShare::TYPE_USER, IShare::TYPE_LINK, IShare::TYPE_REMOTE, IShare::TYPE_ROOM, IShare::TYPE_EMAIL] as $shareType) { $offset = 0; while (true) { $sharePage = $this->shareManager->getSharesBy($sourceUid, $shareType, null, true, 50, $offset); |