mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 16:19:06 -04:00
show failed external storages properly
This commit is contained in:
parent
4b4bf87f95
commit
2e3a5ccaaa
1 changed files with 5 additions and 0 deletions
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Reference in a new issue