Skip to content

Commit 27c04eb

Browse files
committed
fix: fix availability wrapper not applying
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent d2230f8 commit 27c04eb

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/private/Files/SetupManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
use OC_App;
4040
use OC_Hook;
4141
use OC_Util;
42-
use OCA\Files_External\Config\ConfigAdapter;
42+
use OCA\Files_External\Config\ExternalMountPoint;
4343
use OCA\Files_Sharing\External\Mount;
4444
use OCA\Files_Sharing\ISharedMountPoint;
4545
use OCA\Files_Sharing\SharedMount;
@@ -149,7 +149,7 @@ function ($mountPoint, IStorage $storage, IMountPoint $mount) use ($reSharingEna
149149

150150
// install storage availability wrapper, before most other wrappers
151151
Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
152-
$externalMount = $mount instanceof ConfigAdapter || $mount instanceof Mount;
152+
$externalMount = $mount instanceof ExternalMountPoint || $mount instanceof Mount;
153153
if ($externalMount && !$storage->isLocal()) {
154154
return new Availability(['storage' => $storage]);
155155
}

0 commit comments

Comments
 (0)