mirror of
https://github.com/nextcloud/server.git
synced 2026-05-19 16:39:59 -04:00
Merge pull request #55319 from nextcloud/fix/dav/user-addressbook-clean-up-stable29
This commit is contained in:
commit
2bdb628bf5
2 changed files with 8 additions and 0 deletions
|
|
@ -1053,6 +1053,13 @@ class CardDavBackend implements BackendInterface, SyncSupport {
|
|||
}, $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
|
||||
*
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ class HookManager {
|
|||
);
|
||||
}
|
||||
$this->calDav->deleteAllSharesByUser('principals/users/' . $uid);
|
||||
$this->cardDav->deleteAllSharesByUser('principals/users/' . $uid);
|
||||
|
||||
foreach ($this->addressBooksToDelete as $addressBook) {
|
||||
$this->cardDav->deleteAddressBook($addressBook['id']);
|
||||
|
|
|
|||
Loading…
Reference in a new issue