From 1b0b977678b703a994e088eb7c23bdcddb24f6ce Mon Sep 17 00:00:00 2001 From: Bjoern Schiessle Date: Tue, 27 May 2014 15:07:53 +0200 Subject: remove share mount --- apps/files_sharing/lib/sharedmount.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'apps') 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; } } -- cgit v1.2.3