summaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2016-11-14 17:06:28 +0100
committerGitHub <noreply@github.com>2016-11-14 17:06:28 +0100
commitc9b1108e8e1380dbc266dcfca1020ff3f8fa48e1 (patch)
tree80836596b68e15f949eb5e8fb4e6066daf04f909 /apps/files
parent030118cd85486c4243d3e5e3c7f6240fe10453c4 (diff)
parent3fe7186e319233dac0f32ab09b60adce5ad3b4aa (diff)
downloadnextcloud-server-c9b1108e8e1380dbc266dcfca1020ff3f8fa48e1.tar.gz
nextcloud-server-c9b1108e8e1380dbc266dcfca1020ff3f8fa48e1.zip
Merge pull request #2110 from nextcloud/oc_26526
First process group shares and then user shares
Diffstat (limited to 'apps/files')
-rw-r--r--apps/files/lib/Command/TransferOwnership.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files/lib/Command/TransferOwnership.php b/apps/files/lib/Command/TransferOwnership.php
index 3b51e4a9e6d..c8366be32c4 100644
--- a/apps/files/lib/Command/TransferOwnership.php
+++ b/apps/files/lib/Command/TransferOwnership.php
@@ -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);