diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-05-27 15:07:53 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:55:59 +0200 |
commit | 1b0b977678b703a994e088eb7c23bdcddb24f6ce (patch) | |
tree | 6b9f2cac76e0c9d7b7cedfad0ec9a73c169bf236 /apps | |
parent | dea5219244b5d931db102b02d95e72f784eec7d1 (diff) | |
download | nextcloud-server-1b0b977678b703a994e088eb7c23bdcddb24f6ce.tar.gz nextcloud-server-1b0b977678b703a994e088eb7c23bdcddb24f6ce.zip |
remove share mount
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/sharedmount.php | 5 |
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; } } |