diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-03 17:04:05 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2015-07-06 17:24:05 +0200 |
commit | 058d910f5e85ca71d20272d8ca89dc3caf64cef2 (patch) | |
tree | f241a67a937e7868525cb9f1babda359510bb639 /lib/base.php | |
parent | 763b601e4aa109bcade4af687c4c6a9b8e66b5df (diff) | |
download | nextcloud-server-058d910f5e85ca71d20272d8ca89dc3caf64cef2.tar.gz nextcloud-server-058d910f5e85ca71d20272d8ca89dc3caf64cef2.zip |
intproduce pre_addToGroup hook. we need to calculate the possible unique
targets before the user was added to the group otherwise we will always detect
a name collision
Diffstat (limited to 'lib/base.php')
-rw-r--r-- | lib/base.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/base.php b/lib/base.php index 8812d5698f1..bb6027370bf 100644 --- a/lib/base.php +++ b/lib/base.php @@ -797,6 +797,7 @@ class OC { if (\OC::$server->getSystemConfig()->getValue('installed')) { OC_Hook::connect('OC_User', 'post_deleteUser', 'OC\Share\Hooks', 'post_deleteUser'); OC_Hook::connect('OC_User', 'post_addToGroup', 'OC\Share\Hooks', 'post_addToGroup'); + OC_Hook::connect('OC_Group', 'pre_addToGroup', 'OC\Share\Hooks', 'pre_addToGroup'); OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OC\Share\Hooks', 'post_removeFromGroup'); OC_Hook::connect('OC_User', 'post_deleteGroup', 'OC\Share\Hooks', 'post_deleteGroup'); } |