Skip to content

Commit 7da87dc

Browse files
Merge pull request #57767 from nextcloud/setup-provider-all-authoritative
2 parents 1e8374d + 8443e16 commit 7da87dc

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

lib/private/Files/SetupManager.php

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

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

0 commit comments

Comments
 (0)