diff options
author | Joas Schilling <213943+nickvergessen@users.noreply.github.com> | 2020-09-09 13:32:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-09-09 13:32:43 +0200 |
commit | f0b46ea605548d9feb4af115a3d05cf2cff24bda (patch) | |
tree | 56ee73e2ece3a2d182c0bda1f2009ed729d23753 /apps/files/lib | |
parent | e280c050531a87150db31adda463ff045da470fd (diff) | |
parent | aa04a26c68f977288782eec32f08ce8f43875961 (diff) | |
download | nextcloud-server-f0b46ea605548d9feb4af115a3d05cf2cff24bda.tar.gz nextcloud-server-f0b46ea605548d9feb4af115a3d05cf2cff24bda.zip |
Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-shares
Transfer shares if no path provided
Diffstat (limited to 'apps/files/lib')
-rw-r--r-- | apps/files/lib/Service/OwnershipTransferService.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php index a8a1b9bd1d6..fa979c2006a 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -247,7 +247,7 @@ class OwnershipTransferService { private function collectUsersShares(string $sourceUid, OutputInterface $output, View $view, - ?string $path = null): array { + string $path): array { $output->writeln("Collecting all share information for files and folders of $sourceUid ..."); $shares = []; @@ -260,7 +260,7 @@ class OwnershipTransferService { if (empty($sharePage)) { break; } - if ($path !== null) { + if ($path !== "$sourceUid/files") { $sharePage = array_filter($sharePage, function (IShare $share) use ($view, $path) { try { $relativePath = $view->getPath($share->getNodeId()); |