aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-07-02 16:25:11 +0200
committerBjoern Schiessle <schiessle@owncloud.com>2015-07-02 16:25:11 +0200
commitf5a7aa296869689713875881cb6c4db44184f6d1 (patch)
treed4379071ef0107898a9a71bf7329dc054e052976 /lib
parentf52eec765c0ec17d00d1bb021b719904fff52fc9 (diff)
downloadnextcloud-server-f5a7aa296869689713875881cb6c4db44184f6d1.tar.gz
nextcloud-server-f5a7aa296869689713875881cb6c4db44184f6d1.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.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/server.php b/lib/private/server.php
index 6a65895cd69..c08940bb756 100644
--- a/lib/private/server.php
+++ b/lib/private/server.php
@@ -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;
});