diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-08 14:27:30 -0500 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2013-03-08 14:27:30 -0500 |
commit | e743386acffe6cb7de4b8d2dac5aeac70f1a74e0 (patch) | |
tree | 5035c307cd75a66d1bc1045251e6323c4e06b93e /apps/files_sharing/lib/updater.php | |
parent | 02e2f7384eca440ce38cec98808cbd8aeb04e9c9 (diff) | |
download | nextcloud-server-e743386acffe6cb7de4b8d2dac5aeac70f1a74e0.tar.gz nextcloud-server-e743386acffe6cb7de4b8d2dac5aeac70f1a74e0.zip |
Fix correctFolders and retrieve the correct storage cache
Diffstat (limited to 'apps/files_sharing/lib/updater.php')
-rw-r--r-- | apps/files_sharing/lib/updater.php | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php index 861025c5933..73e7808f24a 100644 --- a/apps/files_sharing/lib/updater.php +++ b/apps/files_sharing/lib/updater.php @@ -38,13 +38,10 @@ class Shared_Updater { while (!empty($users)) { $reshareUsers = array(); foreach ($users as $user) { - // The ETag of the logged in user should already be updated - if ($user !== $uid) { - $etag = \OC\Files\Filesystem::getETag(''); - \OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag); - // Look for reshares - $reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $info['fileid'], $user, true)); - } + $etag = \OC\Files\Filesystem::getETag(''); + \OCP\Config::setUserValue($user, 'files_sharing', 'etag', $etag); + // Look for reshares + $reshareUsers = array_merge($reshareUsers, \OCP\Share::getUsersItemShared('file', $info['fileid'], $user, true)); } $users = $reshareUsers; } |