Skip to content

Commit b2c0178

Browse files
committed
fix: fix availability wrapper not applying
Signed-off-by: Robin Appelman <[email protected]>
1 parent df3a9e2 commit b2c0178

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/private/Files/SetupManager.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
use OC_App;
2525
use OC_Hook;
2626
use OC_Util;
27-
use OCA\Files_External\Config\ConfigAdapter;
27+
use OCA\Files_External\Config\ExternalMountPoint;
2828
use OCA\Files_Sharing\External\Mount;
2929
use OCA\Files_Sharing\ISharedMountPoint;
3030
use OCA\Files_Sharing\SharedMount;
@@ -135,7 +135,7 @@ function ($mountPoint, IStorage $storage, IMountPoint $mount) use ($reSharingEna
135135

136136
// install storage availability wrapper, before most other wrappers
137137
Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
138-
$externalMount = $mount instanceof ConfigAdapter || $mount instanceof Mount;
138+
$externalMount = $mount instanceof ExternalMountPoint || $mount instanceof Mount;
139139
if ($externalMount && !$storage->isLocal()) {
140140
return new Availability(['storage' => $storage]);
141141
}

0 commit comments

Comments
 (0)