call post_addToGroup als for class OC_User because sharing and LDAP are using this class. Minimal approach to fix #16740

This commit is contained in:
Bjoern Schiessle 2015-07-02 16:25:11 +02:00
parent f52eec765c
commit f5a7aa2968
1 changed files with 2 additions and 0 deletions

View File

@ -150,6 +150,8 @@ class Server extends SimpleContainer implements IServerContainer {
});
$groupManager->listen('\OC\Group', 'postAddUser', function (\OC\Group\Group $group, \OC\User\User $user) {
\OC_Hook::emit('OC_Group', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));
//Minimal fix to keep it backward compatible TODO: clean up all the GroupManager hooks
\OC_Hook::emit('OC_User', 'post_addToGroup', array('uid' => $user->getUID(), 'gid' => $group->getGID()));
});
return $groupManager;
});