diff options
author | Robin Appelman <icewind@owncloud.com> | 2015-06-22 18:21:54 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2015-07-01 09:59:15 +0200 |
commit | 40ab639013427c17cdf050b1e905d47afb74a566 (patch) | |
tree | d12878bd19d0b894dd7597bb632b87c76c1303fb | |
parent | f8e6800cd4a7350d73ce5a70b008d66b57ac3bd5 (diff) | |
download | nextcloud-server-40ab639013427c17cdf050b1e905d47afb74a566.tar.gz nextcloud-server-40ab639013427c17cdf050b1e905d47afb74a566.zip |
take share target into account when updating recipient etags
-rw-r--r-- | apps/files_sharing/lib/updater.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files_sharing/lib/updater.php b/apps/files_sharing/lib/updater.php index 9d8ae7cbb4f..86731835b7c 100644 --- a/apps/files_sharing/lib/updater.php +++ b/apps/files_sharing/lib/updater.php @@ -145,10 +145,10 @@ class Shared_Updater { $shareType = $params['shareType']; if ($shareType === \OCP\Share::SHARE_TYPE_USER) { - self::correctUsersFolder($shareWith, '/'); + self::correctUsersFolder($shareWith, $params['fileTarget']); } elseif ($shareType === \OCP\Share::SHARE_TYPE_GROUP) { foreach (\OC_Group::usersInGroup($shareWith) as $user) { - self::correctUsersFolder($user, '/'); + self::correctUsersFolder($user, $params['fileTarget']); } } } |