From e13391dac8b754f3baa0ad50f1fcf21c47d2db41 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rg=20Lehrke?= Date: Mon, 7 Jun 2010 11:55:56 +0000 Subject: [PATCH] Fix private contacts issue for foreign addressbooks --- addressbook/inc/class.addressbook_vcal.inc.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/addressbook/inc/class.addressbook_vcal.inc.php b/addressbook/inc/class.addressbook_vcal.inc.php index 64442511b1..9476541d7b 100644 --- a/addressbook/inc/class.addressbook_vcal.inc.php +++ b/addressbook/inc/class.addressbook_vcal.inc.php @@ -185,6 +185,10 @@ class addressbook_vcal extends addressbook_bo } } } + if ($contact['owner'] != $this->user) + { + unset($contact['private']); // only my own contacts may be private! + } if ($this->log) { error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" .