summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2020-09-07 17:35:29 +0200
committerJulius Härtl <jus@bitgrid.net>2020-09-07 17:35:29 +0200
commitaa04a26c68f977288782eec32f08ce8f43875961 (patch)
tree054d88fbbb78dd5aa689cd55da09be9749e1976f /apps/files
parent47e7257c80535a3518168b3a0ccd80ad9fc91d58 (diff)
downloadnextcloud-server-aa04a26c68f977288782eec32f08ce8f43875961.tar.gz
nextcloud-server-aa04a26c68f977288782eec32f08ce8f43875961.zip
Transfer shares if no path provided
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Service/OwnershipTransferService.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/lib/Service/OwnershipTransferService.php b/apps/files/lib/Service/OwnershipTransferService.php
index 9f3e530478d..1fe9f037d0c 100644
--- a/apps/files/lib/Service/OwnershipTransferService.php
+++ b/apps/files/lib/Service/OwnershipTransferService.php
@@ -246,7 +246,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 = [];
@@ -259,7 +259,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());