summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib/sharedmount.php
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-07-02 14:40:22 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2014-07-04 10:34:54 +0200
commit3b9fa8158183950634172799737489cefccd170c (patch)
treea0965d3509af464225c5e1393be9b9aea9cdb3e9 /apps/files_sharing/lib/sharedmount.php
parente4a3f8d3c44f3238071d03f793cd2c5395062b5e (diff)
downloadnextcloud-server-3b9fa8158183950634172799737489cefccd170c.tar.gz
nextcloud-server-3b9fa8158183950634172799737489cefccd170c.zip
if a folder gets deleted we unshare all shared files/folders below
Diffstat (limited to 'apps/files_sharing/lib/sharedmount.php')
-rw-r--r--apps/files_sharing/lib/sharedmount.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index f8def2c6a82..564ac43ec74 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -143,8 +143,10 @@ class SharedMount extends Mount implements MoveableMount {
* @return bool
*/
public function removeMount() {
+ $mountManager = \OC\Files\Filesystem::getMountManager();
$storage = $this->getStorage();
$result = \OCP\Share::unshareFromSelf($storage->getItemType(), $storage->getMountPoint());
+ $mountManager->removeMount($this->mountPoint);
return $result;
}