[Pkg-owncloud-commits] [owncloud] 16/58: 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:04 UTC 2015


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

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

commit 918ba60aae8c8da952428e3f1af53dd7372822c5
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 957de145..452a9ff 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;
 		});

-- 
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