summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjoern Schiessle <bjoern@schiessle.org>2018-01-11 10:16:07 +0100
committerBjoern Schiessle <bjoern@schiessle.org>2018-01-11 10:17:05 +0100
commit286de0c239cd740b47db27b2263942e567ce80ae (patch)
tree12cb87041b61cf10b3d18eb611a7b0f49ff54d5d /apps
parent9978cee1e3f3989f89864742670a74b52873a75b (diff)
downloadnextcloud-server-286de0c239cd740b47db27b2263942e567ce80ae.tar.gz
nextcloud-server-286de0c239cd740b47db27b2263942e567ce80ae.zip
return correct mount type for federated shares
fix https://github.com/nextcloud/server/issues/6584 Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
Diffstat (limited to 'apps')
-rw-r--r--apps/files_sharing/lib/External/Mount.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/apps/files_sharing/lib/External/Mount.php b/apps/files_sharing/lib/External/Mount.php
index d756a1830b2..e12f8823cd8 100644
--- a/apps/files_sharing/lib/External/Mount.php
+++ b/apps/files_sharing/lib/External/Mount.php
@@ -68,4 +68,14 @@ class Mount extends MountPoint implements MoveableMount {
public function removeMount() {
return $this->manager->removeShare($this->mountPoint);
}
+
+ /**
+ * Get the type of mount point, used to distinguish things like shares and external storages
+ * in the web interface
+ *
+ * @return string
+ */
+ public function getMountType() {
+ return 'shared';
+ }
}