summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2018-01-11 11:45:29 +0100
committerGitHub <noreply@github.com>2018-01-11 11:45:29 +0100
commitd56c566ff5b5584d1da03ceecf3b655ae36168f2 (patch)
tree324b3b88312a24d8025c8714e22ce18bc4eba25a /apps/files_sharing
parent2a24f45b5fc8786da607f2065f73fa7133b76d04 (diff)
parent286de0c239cd740b47db27b2263942e567ce80ae (diff)
downloadnextcloud-server-d56c566ff5b5584d1da03ceecf3b655ae36168f2.tar.gz
nextcloud-server-d56c566ff5b5584d1da03ceecf3b655ae36168f2.zip
Merge pull request #7785 from nextcloud/mount-type-federated-shares
return correct mount type for federated shares
Diffstat (limited to 'apps/files_sharing')
-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';
+ }
}