diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-14 14:06:57 -0400 |
---|---|---|
committer | Michael Gapczynski <mtgap@owncloud.com> | 2012-07-14 14:06:57 -0400 |
commit | 1ff2dd8f63efdc67302e427601b619da5867d438 (patch) | |
tree | 54421ba67400a35cf3aeca586c9c1bb7262d7d01 /lib/public | |
parent | cc6c940b9ab814b6674a36b218b1be26e94a26bd (diff) | |
download | nextcloud-server-1ff2dd8f63efdc67302e427601b619da5867d438.tar.gz nextcloud-server-1ff2dd8f63efdc67302e427601b619da5867d438.zip |
Listen to post_deleteUser, post_addToGroup, and post_removeFromGroup hooks
Diffstat (limited to 'lib/public')
-rw-r--r-- | lib/public/share.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index b1f7468c83e..75dea92eea6 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -21,6 +21,10 @@ namespace OCP; +\OC_Hook::connect('OC_User', 'post_deleteUser', 'OCP\Share', 'post_deleteUser'); +\OC_Hook::connect('OC_User', 'post_addToGroup', 'OCP\Share', 'post_addToGroup'); +\OC_Hook::connect('OC_User', 'post_removeFromGroup', 'OCP\Share', 'post_removeFromGroup'); + /** * This class provides the ability for apps to share their content between users. * Apps must create a backend class that extends OCP\Share_Backend and register it with this class. |