mirror of
https://github.com/nextcloud/server.git
synced 2026-02-03 20:41:22 -05:00
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:
commit
fe1701c51c
1 changed files with 12 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue