fix: don't do full setup in setupForProvider if all requested providers are authoritative

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

@ -671,7 +671,18 @@ class SetupManager {
return;
}
if ($this->fullSetupRequired($user)) {
$providersAreAuthoritative = true;
foreach ($providers as $provider) {
if (!(
is_a($provider, IAuthoritativeMountProvider::class, true)
|| is_a($provider, IRootMountProvider::class, true)
|| is_a($provider, IHomeMountProvider::class, true)
)) {
$providersAreAuthoritative = false;
}
}
if (!$providersAreAuthoritative && $this->fullSetupRequired($user)) {
$this->setupForUser($user);
return;
}

Loading…
Cancel
Save