mirror of
https://github.com/owncloudarchive/contacts.git
synced 2025-01-30 19:52:17 +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::unshareAll('addressbook', $id);
|
||||||
//OCP\Share::unshare('addressbook', $id);
|
|
||||||
|
|
||||||
if(count(self::all(OCP\User::getUser())) == 0) {
|
if(count(self::all(OCP\User::getUser())) == 0) {
|
||||||
self::addDefault();
|
self::addDefault();
|
||||||
|
@ -552,6 +552,8 @@ class OC_Contacts_VCard {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
OCP\Share::unshareAll('contact', $id);
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user