Fix private contacts issue for foreign addressbooks

This commit is contained in:
Jörg Lehrke 2010-06-07 11:55:56 +00:00
parent e19524d27f
commit e13391dac8

View File

@ -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) if ($this->log)
{ {
error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" . error_log(__FILE__.'['.__LINE__.'] '.__METHOD__."()\n" .