fix(unconfigured): do not enable the backends without a complete configuration.
Signed-off-by: Claus-Justus Heine <himself@claus-justus-heine.de>
This commit is contained in:
@@ -2,10 +2,10 @@
|
|||||||
/**
|
/**
|
||||||
* Nextcloud - user_sql
|
* Nextcloud - user_sql
|
||||||
*
|
*
|
||||||
* @copyright 2018 Marcin Łojewski <dev@mlojewski.me>
|
|
||||||
* @author Marcin Łojewski <dev@mlojewski.me>
|
|
||||||
* @copyright 2025 Claus-Justus Heine <himself@claus-justus-heine.de>
|
* @copyright 2025 Claus-Justus Heine <himself@claus-justus-heine.de>
|
||||||
* @author Claus-Justus Heine <himself@claus-justus-heine.de>
|
* @author Claus-Justus Heine <himself@claus-justus-heine.de>
|
||||||
|
* @copyright 2018 Marcin Łojewski <dev@mlojewski.me>
|
||||||
|
* @author Marcin Łojewski <dev@mlojewski.me>
|
||||||
*
|
*
|
||||||
* This program is free software: you can redistribute it and/or modify
|
* This program is free software: you can redistribute it and/or modify
|
||||||
* it under the terms of the GNU Affero General Public License as
|
* it under the terms of the GNU Affero General Public License as
|
||||||
@@ -63,6 +63,9 @@ class Application extends App implements IBootstrap
|
|||||||
IGroupManager $groupManager,
|
IGroupManager $groupManager,
|
||||||
Backend\GroupBackend $groupBackend,
|
Backend\GroupBackend $groupBackend,
|
||||||
) {
|
) {
|
||||||
|
if (!$userBackend->isConfigured() || !$groupBackend->isConfigured()) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
$userManager->registerBackend($userBackend);
|
$userManager->registerBackend($userBackend);
|
||||||
$groupManager->addBackend($groupBackend);
|
$groupManager->addBackend($groupBackend);
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user