diff options
author | Joas Schilling <coding@schilljs.com> | 2016-12-11 13:42:05 +0300 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2016-12-11 13:42:05 +0300 |
commit | 4954d9588e2e1c3f61aa9c083ed9e50359fd552e (patch) | |
tree | a4851a9eb01729d2a2be347021339a6c8ea4ad77 /appinfo/app.php | |
parent | 8213730272806a181c400e446023af0bd7f9cab2 (diff) |
Listen to the right hook so we have the IUser
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'appinfo/app.php')
-rw-r--r-- | appinfo/app.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/appinfo/app.php b/appinfo/app.php index f899d80c2..8f7997296 100644 --- a/appinfo/app.php +++ b/appinfo/app.php @@ -45,6 +45,8 @@ $manager->registerNotifier(function() { ]; }); -\OCP\Util::connectHook('OC_User', 'post_deleteUser', \OCA\Spreed\Util::class, 'deleteUser'); +\OC::$server->getUserManager()->listen('\OC\User', 'postDelete', function ($user) { + \OCA\Spreed\Util::deleteUser($user); +}); \OCP\App::registerPersonal('spreed', 'personal'); |