Merge pull request #2110 from nextcloud/oc_26526
First process group shares and then user shares
This commit is contained in:
commit
c9b1108e8e
|
@ -188,7 +188,7 @@ class TransferOwnership extends Command {
|
|||
$output->writeln("Collecting all share information for files and folder of $this->sourceUser ...");
|
||||
|
||||
$progress = new ProgressBar($output, count($this->shares));
|
||||
foreach([\OCP\Share::SHARE_TYPE_USER, \OCP\Share::SHARE_TYPE_GROUP, \OCP\Share::SHARE_TYPE_LINK, \OCP\Share::SHARE_TYPE_REMOTE] as $shareType) {
|
||||
foreach([\OCP\Share::SHARE_TYPE_GROUP, \OCP\Share::SHARE_TYPE_USER, \OCP\Share::SHARE_TYPE_LINK, \OCP\Share::SHARE_TYPE_REMOTE] as $shareType) {
|
||||
$offset = 0;
|
||||
while (true) {
|
||||
$sharePage = $this->shareManager->getSharesBy($this->sourceUser, $shareType, null, true, 50, $offset);
|
||||
|
|
Loading…
Reference in New Issue