Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2016-12-11 13:42:05 +0300
committerJoas Schilling <coding@schilljs.com>2016-12-11 13:42:05 +0300
commit4954d9588e2e1c3f61aa9c083ed9e50359fd552e (patch)
treea4851a9eb01729d2a2be347021339a6c8ea4ad77 /appinfo/app.php
parent8213730272806a181c400e446023af0bd7f9cab2 (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.php4
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');