From 1b0b977678b703a994e088eb7c23bdcddb24f6ce Mon Sep 17 00:00:00 2001
From: Bjoern Schiessle <schiessle@owncloud.com>
Date: Tue, 27 May 2014 15:07:53 +0200
Subject: [PATCH] remove share mount

---
 apps/files_sharing/lib/sharedmount.php | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/apps/files_sharing/lib/sharedmount.php b/apps/files_sharing/lib/sharedmount.php
index f761f1b7ba..f1704504f6 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;
 	}
 }
-- 
GitLab