summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-06-22 18:21:54 +0200
committerVincent Petry <pvince81@owncloud.com>2015-07-01 09:59:15 +0200
commit40ab639013427c17cdf050b1e905d47afb74a566 (patch)
treed12878bd19d0b894dd7597bb632b87c76c1303fb
parentf8e6800cd4a7350d73ce5a70b008d66b57ac3bd5 (diff)
downloadnextcloud-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.php4
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']);
}
}
}