aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/HookManager.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/dav/lib/HookManager.php')
-rw-r--r--apps/dav/lib/HookManager.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/apps/dav/lib/HookManager.php b/apps/dav/lib/HookManager.php
index a887c6c4387..b1bd039c65e 100644
--- a/apps/dav/lib/HookManager.php
+++ b/apps/dav/lib/HookManager.php
@@ -77,22 +77,22 @@ class HookManager {
'post_createUser',
$this,
'postCreateUser');
- \OC::$server->getUserManager()->listen('\OC\User', 'announceUser', function ($uid) {
+ \OC::$server->getUserManager()->listen('\OC\User', 'assignedUserId', function ($uid) {
$this->postCreateUser(['uid' => $uid]);
});
Util::connectHook('OC_User',
'pre_deleteUser',
$this,
'preDeleteUser');
- \OC::$server->getUserManager()->listen('\OC\User', 'preRevokeUser', [$this, 'preRevokeUser']);
+ \OC::$server->getUserManager()->listen('\OC\User', 'preUnassignedUserId', [$this, 'preUnassignedUserId']);
Util::connectHook('OC_User',
'post_deleteUser',
$this,
'postDeleteUser');
- \OC::$server->getUserManager()->listen('\OC\User', 'postRevokeUser', function ($uid) {
+ \OC::$server->getUserManager()->listen('\OC\User', 'postUnassignedUserId', function ($uid) {
$this->postDeleteUser(['uid' => $uid]);
});
- \OC::$server->getUserManager()->listen('\OC\User', 'postRevokeUser', [$this, 'postRevokeUser']);
+ \OC::$server->getUserManager()->listen('\OC\User', 'postUnassignedUserId', [$this, 'postUnassignedUserId']);
Util::connectHook('OC_User',
'changeUser',
$this,
@@ -111,7 +111,7 @@ class HookManager {
$this->addressBooksToDelete = $this->cardDav->getUsersOwnAddressBooks('principals/users/' . $uid);
}
- public function preRevokeUser($uid) {
+ public function preUnassignedUserId($uid) {
$this->usersToDelete[$uid] = $this->userManager->get($uid);
}
@@ -131,7 +131,7 @@ class HookManager {
}
}
- public function postRevokeUser($uid) {
+ public function postUnassignedUserId($uid) {
if (isset($this->usersToDelete[$uid])){
$this->syncService->deleteUser($this->usersToDelete[$uid]);
}