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

Signed-off-by: Robin Appelman <robin@icewind.nl>
This commit is contained in:
Robin Appelman 2026-01-23 18:12:23 +01:00
parent 2bc3af8b2a
commit bc1798cb33
No known key found for this signature in database
GPG key ID: 42B69D8A64526EFB

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;
}