Browse Source

fix: fix availability wrapper not applying

Signed-off-by: Robin Appelman <robin@icewind.nl>
pull/49494/head
Robin Appelman 12 months ago
parent
commit
b2c01785ae
No known key found for this signature in database GPG Key ID: 42B69D8A64526EFB
  1. 4
      lib/private/Files/SetupManager.php

4
lib/private/Files/SetupManager.php

@ -24,7 +24,7 @@ use OC\Share20\ShareDisableChecker;
use OC_App; use OC_App;
use OC_Hook; use OC_Hook;
use OC_Util; use OC_Util;
use OCA\Files_External\Config\ConfigAdapter;
use OCA\Files_External\Config\ExternalMountPoint;
use OCA\Files_Sharing\External\Mount; use OCA\Files_Sharing\External\Mount;
use OCA\Files_Sharing\ISharedMountPoint; use OCA\Files_Sharing\ISharedMountPoint;
use OCA\Files_Sharing\SharedMount; use OCA\Files_Sharing\SharedMount;
@ -135,7 +135,7 @@ class SetupManager {
// install storage availability wrapper, before most other wrappers // install storage availability wrapper, before most other wrappers
Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage, IMountPoint $mount) { Filesystem::addStorageWrapper('oc_availability', function ($mountPoint, IStorage $storage, IMountPoint $mount) {
$externalMount = $mount instanceof ConfigAdapter || $mount instanceof Mount;
$externalMount = $mount instanceof ExternalMountPoint || $mount instanceof Mount;
if ($externalMount && !$storage->isLocal()) { if ($externalMount && !$storage->isLocal()) {
return new Availability(['storage' => $storage]); return new Availability(['storage' => $storage]);
} }

Loading…
Cancel
Save