1
0
mirror of https://github.com/owncloudarchive/contacts.git synced 2025-01-30 19:52:17 +01:00

Temporary hack to make sharing look workable. Refs #229

This commit is contained in:
Thomas Tanghus 2013-10-23 19:12:31 +02:00
parent a388525111
commit 3ba2913279

View File

@ -54,7 +54,9 @@ class Addressbook implements \OCP\Share_Backend_Collection {
$user_addressbooks = array();
foreach($this->backend->getAddressBooksForUser($shareWith) as $user_addressbook) {
//foreach($this->backend->getAddressBooksForUser($shareWith) as $user_addressbook) {
// FIXME: The backend used is for the current user, not the right one
foreach($this->backend->getAddressBooksForUser() as $user_addressbook) {
$user_addressbooks[] = $user_addressbook['displayname'];
}
$name = $addressbook['displayname'] . '(' . $addressbook['userid'] . ')';