* fixed private contacts not synced

for an owner filter, which is NOT the current user, filter out private entries
This commit is contained in:
Ralf Becker 2010-09-07 08:28:17 +00:00
parent a2f1f19a90
commit f983b8569a

View File

@ -278,7 +278,8 @@ class addressbook_sql extends so_sql_cf
{
if (!($filter['owner'] = array_intersect((array)$filter['owner'],array_keys($this->grants)))) return false;
$filter['private'] = 0;
// for an owner filter, which is NOT the current user, filter out private entries
if ($filter['owner'] != $GLOBALS['egw_info']['user']['account_id']) $filter['private'] = 0;
}
else // search all addressbooks, incl. accounts
{