]> source.dussan.org Git - nextcloud-server.git/commitdiff
show failed external storages properly
authorRobin Appelman <icewind@owncloud.com>
Mon, 1 Feb 2016 13:45:14 +0000 (14:45 +0100)
committerRobin Appelman <icewind@owncloud.com>
Thu, 4 Feb 2016 15:33:08 +0000 (16:33 +0100)
apps/files_external/lib/config/configadapter.php

index 2bf39bcaa4f41e90ab002d5f4531cff4ee48e2de..2142da90bc55a5d23520eb07b3b4932ed85128e8 100644 (file)
@@ -130,6 +130,11 @@ class ConfigAdapter implements IMountProvider {
                                $impl = new FailedStorage(['exception' => $e]);
                        }
 
+                       $availability = $impl->getAvailability();
+                       if (!$availability['available']) {
+                               $impl = new FailedStorage(['exception' => null]);
+                       }
+
                        $mount = new MountPoint(
                                $impl,
                                '/' . $user->getUID() . '/files' . $storage->getMountPoint(),