]> source.dussan.org Git - nextcloud-server.git/commitdiff
run first getUsersItemShared() with the owner
authorBjoern Schiessle <schiessle@owncloud.com>
Fri, 18 Oct 2013 15:48:35 +0000 (17:48 +0200)
committerBjoern Schiessle <schiessle@owncloud.com>
Wed, 23 Oct 2013 14:34:26 +0000 (16:34 +0200)
apps/files_sharing/lib/updater.php

index 891e87ec40a6789e3adcacd948b4489e99d6c99a..3381f75f16df6e1794c7a63aeeac50152ac0a533 100644 (file)
@@ -34,7 +34,7 @@ class Shared_Updater {
                $info = \OC\Files\Filesystem::getFileInfo($target);
                $checkedUser = array($uidOwner);
                // Correct Shared folders of other users shared with
-               $users = \OCP\Share::getUsersItemShared('file', $info['fileid'], $currentOwner, true);
+               $users = \OCP\Share::getUsersItemShared('file', $info['fileid'], $uidOwner, true);
                if (!empty($users)) {
                        while (!empty($users)) {
                                $reshareUsers = array();