Merge pull request #55318 from nextcloud/fix/dav/user-addressbook-clean-up-stable30

This commit is contained in:
Kate 2025-09-27 14:53:07 +02:00 committed by GitHub
commit 67564f80b7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 0 deletions

View file

@ -1024,6 +1024,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
*

View file

@ -120,6 +120,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']);