Skip to content

Commit 0328402

Browse files
committed
fix: don't do full setup in setupForProvider if all requested providers are authoritative
Signed-off-by: Robin Appelman <robin@icewind.nl>
1 parent d9d1d04 commit 0328402

1 file changed

Lines changed: 12 additions & 1 deletion

File tree

lib/private/Files/SetupManager.php

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -671,7 +671,18 @@ public function setupForProvider(string $path, array $providers): void {
671671
return;
672672
}
673673

674-
if ($this->fullSetupRequired($user)) {
674+
$providersAreAuthoritative = true;
675+
foreach ($providers as $provider) {
676+
if(!(
677+
is_a($provider, IAuthoritativeMountProvider::class, true)
678+
|| is_a($provider, IRootMountProvider::class, true)
679+
|| is_a($provider, IHomeMountProvider::class, true)
680+
)) {
681+
$providersAreAuthoritative = false;
682+
}
683+
}
684+
685+
if (!$providersAreAuthoritative && $this->fullSetupRequired($user)) {
675686
$this->setupForUser($user);
676687
return;
677688
}

0 commit comments

Comments
 (0)