Merge pull request #57872 from nextcloud/setup-provider-all-authoritative-33

[stable33] fix: don't do full setup in setupForProvider if all requested providers are authoritative
This commit is contained in:
Andy Scherzinger 2026-01-28 20:15:07 +01:00 committed by GitHub
commit fe1701c51c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -673,7 +673,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;
}