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:
parent
506fe0b9f9
commit
2bd762c86f
@ -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();
|
||||
|
@ -552,6 +552,8 @@ class OC_Contacts_VCard {
|
||||
);
|
||||
}
|
||||
|
||||
OCP\Share::unshareAll('contact', $id);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user