aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedmount.php
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2015-03-09 16:20:18 +0100
committerRobin Appelman <icewind@owncloud.com>2015-04-27 14:07:15 +0200
commit30ad56813a16908e3862c353256f2a6d0f05fe3a (patch)
tree284153f54d9ad64f377602c2ce6b2dc83f3cc445 /apps/files_sharing/lib/sharedmount.php
parent518d5aadf51318886481696e4308fcc39684b508 (diff)
downloadnextcloud-server-30ad56813a16908e3862c353256f2a6d0f05fe3a.tar.gz
nextcloud-server-30ad56813a16908e3862c353256f2a6d0f05fe3a.zip
propagate etags for all user of a share
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r--apps/files_sharing/lib/sharedmount.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index da00549541b..fbf8d05c1b2 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -35,8 +35,14 @@ class SharedMount extends MountPoint implements MoveableMount {
*/
protected $storage = null;
+ /**
+ * @var \OC\Files\Cache\ChangePropagator
+ */
+ protected $ownerPropagator;
+
public function __construct($storage, $mountpoint, $arguments = null, $loader = null) {
// first update the mount point before creating the parent
+ $this->ownerPropagator = $arguments['propagator'];
$newMountPoint = $this->verifyMountPoint($arguments['share'], $arguments['user']);
$absMountPoint = '/' . $arguments['user'] . '/files' . $newMountPoint;
parent::__construct($storage, $absMountPoint, $arguments, $loader);
@@ -174,4 +180,16 @@ class SharedMount extends MountPoint implements MoveableMount {
return $result;
}
+
+ public function getShare() {
+ $this->getStorage(); //ensure it exists
+ return $this->storage->getShare();
+ }
+
+ /**
+ * @return \OC\Files\Cache\ChangePropagator
+ */
+ public function getOwnerPropagator() {
+ return $this->ownerPropagator;
+ }
}