diff options
author | Julius Härtl <jus@bitgrid.net> | 2020-09-07 17:35:29 +0200 |
---|---|---|
committer | Julius Härtl <jus@bitgrid.net> | 2020-09-17 19:03:07 +0200 |
commit | 818b69ec545bf8408c421305eb77eb5234079e27 (patch) | |
tree | b5272251c301c52e6ea241ec7e72a1bd2b27d2d4 /apps | |
parent | 14c3f1ebd88389046aa5dbc971fcb2f00f8cd00f (diff) | |
download | nextcloud-server-818b69ec545bf8408c421305eb77eb5234079e27.tar.gz nextcloud-server-818b69ec545bf8408c421305eb77eb5234079e27.zip |
Transfer shares if no path provided
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps')
-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 7da8c9b2bbf..9d22c43b662 100644 --- a/apps/files/lib/Service/OwnershipTransferService.php +++ b/apps/files/lib/Service/OwnershipTransferService.php @@ -244,7 +244,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 = []; @@ -257,7 +257,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()); |