Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions apps/dav/lib/CardDAV/CardDavBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -1091,6 +1091,13 @@ public function updateShares(IShareable $shareable, array $add, array $remove):
}, $this->db);
}

/**
* Delete all of a user's shares
*/
public function deleteAllSharesByUser(string $principaluri): void {
$this->sharingBackend->deleteAllSharesByUser($principaluri);
}

/**
* Search contacts in a specific address-book
*
Expand Down
1 change: 1 addition & 0 deletions apps/dav/lib/HookManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ public function postDeleteUser($params) {
);
}
$this->calDav->deleteAllSharesByUser('principals/users/' . $uid);
$this->cardDav->deleteAllSharesByUser('principals/users/' . $uid);

foreach ($this->addressBooksToDelete as $addressBook) {
$this->cardDav->deleteAddressBook($addressBook['id']);
Expand Down
Loading