summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArthur Schiwon <blizzz@arthur-schiwon.de>2020-09-11 00:09:00 +0200
committerArthur Schiwon <blizzz@arthur-schiwon.de>2020-09-11 00:14:06 +0200
commitb95e63b8da7beeb4a299f2be7f1800dd80a335a4 (patch)
tree6ee84b83fd3396ce1456221629568d27742aca8e
parentbe9dde8a074117833ce7f0252ac8784146c8a9fc (diff)
downloadnextcloud-server-b95e63b8da7beeb4a299f2be7f1800dd80a335a4.tar.gz
nextcloud-server-b95e63b8da7beeb4a299f2be7f1800dd80a335a4.zip
announce added user and group backend later as there might be interdeps
Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
-rw-r--r--apps/user_ldap/lib/AppInfo/Application.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/apps/user_ldap/lib/AppInfo/Application.php b/apps/user_ldap/lib/AppInfo/Application.php
index cb0fec69600..93f7ccb379d 100644
--- a/apps/user_ldap/lib/AppInfo/Application.php
+++ b/apps/user_ldap/lib/AppInfo/Application.php
@@ -109,11 +109,11 @@ class Application extends App implements IBootstrap {
$groupBackend = new Group_Proxy($configPrefixes, $ldapWrapper, $groupPluginManager);
\OC_User::useBackend($userBackend);
+ $groupManager->addBackend($groupBackend);
+
$userBackendRegisteredEvent = new UserBackendRegistered($userBackend, $userPluginManager);
- $dispatcher->dispatchTyped($userBackendRegisteredEvent);
$legacyDispatcher->dispatch('OCA\\User_LDAP\\User\\User::postLDAPBackendAdded', $userBackendRegisteredEvent);
-
- $groupManager->addBackend($groupBackend);
+ $dispatcher->dispatchTyped($userBackendRegisteredEvent);
$groupBackendRegisteredEvent = new GroupBackendRegistered($groupBackend, $groupPluginManager);
$dispatcher->dispatchTyped($groupBackendRegisteredEvent);
}