1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-18 07:52:21 +01:00

Unshare Calendar/Event/Addressbook/Contact on delete.

This commit is contained in:
Thomas Tanghus 2012-10-16 22:25:03 +02:00
parent 506fe0b9f9
commit 2bd762c86f
2 changed files with 3 additions and 2 deletions

View File

@ -346,8 +346,7 @@ class OC_Contacts_Addressbook {
);
}
// TODO: Unshare all when that method is created
//OCP\Share::unshare('addressbook', $id);
OCP\Share::unshareAll('addressbook', $id);
if(count(self::all(OCP\User::getUser())) == 0) {
self::addDefault();

View File

@ -552,6 +552,8 @@ class OC_Contacts_VCard {
);
}
OCP\Share::unshareAll('contact', $id);
return true;
}