Transfer shares if no path provided

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/22648/head
Julius Härtl 6 years ago
parent 47e7257c80
commit aa04a26c68
No known key found for this signature in database
GPG Key ID: 4C614C6ED2CDE6DF
  1. 4
      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());

Loading…
Cancel
Save