[Pkg-owncloud-commits] [owncloud] 14/131: call post_addToGroup als for class OC_User because sharing and LDAP are using this class. Minimal approach to fix #16740

David Prévot taffit at moszumanska.debian.org
Tue Aug 11 15:58:26 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.1.1
in repository owncloud.

commit 9def2fcf7142a780e14abd86b51321491d919fdf
Author: Bjoern Schiessle <schiessle at owncloud.com>
Date:   Thu Jul 2 16:25:11 2015 +0200

    call post_addToGroup als for class OC_User because sharing and LDAP are using this class. Minimal approach to fix #16740
---
 lib/private/server.php | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/lib/private/server.php b/lib/private/server.php
index 6a65895..c08940b 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;
 		});

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list