]> source.dussan.org Git - nextcloud-server.git/commitdiff
LDAP: fix wrong hook name
authorArthur Schiwon <blizzz@owncloud.com>
Sat, 17 Aug 2013 15:55:46 +0000 (17:55 +0200)
committerArthur Schiwon <blizzz@owncloud.com>
Sat, 17 Aug 2013 15:55:46 +0000 (17:55 +0200)
apps/user_ldap/lib/jobs.php

index 2fa13991a913d8d52ed19f4f17a2ad40f2b4b683..118ae583671e98bb4a3a078a3201e41f44595cd3 100644 (file)
@@ -83,7 +83,7 @@ class Jobs {
                        $hasChanged = true;
                    }
                    foreach(array_diff($actualUsers, $knownUsers) as $addedUser) {
-                       \OCP\Util::emitHook('OC_User', 'post_addFromGroup', array('uid' => $addedUser, 'gid' => $group));
+                       \OCP\Util::emitHook('OC_User', 'post_addToGroup', array('uid' => $addedUser, 'gid' => $group));
                        \OCP\Util::writeLog('user_ldap',
                                'bgJ "updateGroups" – "'.$addedUser.'" added to "'.$group.'".',
                                \OCP\Util::INFO);