mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 02:00:51 -04:00
Transfer shares if no path provided
Signed-off-by: Julius Härtl <jus@bitgrid.net>
This commit is contained in:
parent
bfd2f39fed
commit
20eda10441
1 changed files with 2 additions and 2 deletions
|
|
@ -241,7 +241,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 = [];
|
||||
|
|
@ -254,7 +254,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…
Reference in a new issue