Compare commits

1 Commits

Author SHA1 Message Date
a9f9eaf7a7 AppInfo: add config checks before using backends
Config checks were removed when moving to IBootstrap:
f6bcde7 (Move to IBootstrap initialization and remove the deprecated appinfo/app.php, 2025-04-10)

Due to the missing checks, the Nextcloud log is flooded with error messages (SQL errors) if
the configuration is incomplete. This is also if either only the user or group backend is used.
2025-07-26 21:38:51 +02:00

View File

@@ -63,8 +63,12 @@ class Application extends App implements IBootstrap
IGroupManager $groupManager, IGroupManager $groupManager,
Backend\GroupBackend $groupBackend, Backend\GroupBackend $groupBackend,
) { ) {
if ($userBackend->isConfigured()) {
$userManager->registerBackend($userBackend); $userManager->registerBackend($userBackend);
}
if ($groupBackend->isConfigured()) {
$groupManager->addBackend($groupBackend); $groupManager->addBackend($groupBackend);
}
}); });
} }
} }