diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-02 16:25:11 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-03 10:39:22 +0200 |
commit | 918ba60aae8c8da952428e3f1af53dd7372822c5 (patch) | |
tree | f200274279c1cb3860f3b4c50a3b3d66570084b3 /lib | |
parent | 0a1b90929a971139f8e801338fc2e89f1d9fc6c0 (diff) | |
download | nextcloud-server-918ba60aae8c8da952428e3f1af53dd7372822c5.tar.gz nextcloud-server-918ba60aae8c8da952428e3f1af53dd7372822c5.zip |
call post_addToGroup als for class OC_User because sharing and LDAP are using this class. Minimal approach to fix #16740
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/server.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php index 957de1450b2..452a9ff489e 100644 --- a/lib/private/server.php +++ b/lib/private/server.php @@ -122,6 +122,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; }); |