aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2013-10-18 17:48:35 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2013-10-23 16:34:26 +0200
commit2221aa9ca42bcfdf9b00e46924947238daf75047 (patch)
tree3d6d86cbd427a5bd8755112442cfc6ada43562a8
parent60e219da43e9a15ba180c511527b64159a9974ae (diff)
downloadnextcloud-server-2221aa9ca42bcfdf9b00e46924947238daf75047.tar.gz
nextcloud-server-2221aa9ca42bcfdf9b00e46924947238daf75047.zip
run first getUsersItemShared() with the owner
-rw-r--r--apps/files_sharing/lib/updater.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php
index 891e87ec40a..3381f75f16d 100644
--- a/apps/files_sharing/lib/updater.php
+++ b/apps/files_sharing/lib/updater.php
@@ -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();