]> source.dussan.org Git - nextcloud-server.git/commitdiff
return correct mount type for federated shares 7786/head
authorBjoern Schiessle <bjoern@schiessle.org>
Thu, 11 Jan 2018 09:16:07 +0000 (10:16 +0100)
committerBjoern Schiessle <bjoern@schiessle.org>
Thu, 11 Jan 2018 09:22:04 +0000 (10:22 +0100)
fix https://github.com/nextcloud/server/issues/6584

Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
apps/files_sharing/lib/External/Mount.php

index d756a1830b21266445bc80dfed2bd4cbec79f10d..e12f8823cd8ca5d30f320affd4c0eb3b0d4ee617 100644 (file)
@@ -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';
+       }
 }