aboutsummaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2014-05-27 15:07:53 +0200
committerRobin Appelman <icewind@owncloud.com>2014-06-06 09:55:59 +0200
commit1b0b977678b703a994e088eb7c23bdcddb24f6ce (patch)
tree6b9f2cac76e0c9d7b7cedfad0ec9a73c169bf236 /apps
parentdea5219244b5d931db102b02d95e72f784eec7d1 (diff)
downloadnextcloud-server-1b0b977678b703a994e088eb7c23bdcddb24f6ce.tar.gz
nextcloud-server-1b0b977678b703a994e088eb7c23bdcddb24f6ce.zip
remove share mount
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/sharedmount.php5
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index f761f1b7bae..f1704504f64 100644
--- a/apps/files_sharing/lib/sharedmount.php
+++ b/apps/files_sharing/lib/sharedmount.php
@@ -105,9 +105,12 @@ class SharedMount extends Mount implements MoveableMount {
/**
* Remove the mount points
*
- * @return mixed
* @return bool
*/
public function removeMount() {
+ $storage = $this->getStorage();
+ $result = \OCP\Share::unshareFromSelf($storage->getItemType(), $storage->getMountPoint());
+
+ return $result;
}
}