]> 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>
Fri, 18 Oct 2013 15:48:35 +0000 (17:48 +0200)
apps/files_sharing/lib/updater.php

index 764e335acd6de714c9867a8b41ba4d81d3733e5b..1e629f3414ffe858604ee87270f9dd73da8d39ec 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();