mirror of
https://github.com/EGroupware/egroupware.git
synced 2025-01-15 18:38:57 +01:00
* fixed private contacts not synced
for an owner filter, which is NOT the current user, filter out private entries
This commit is contained in:
parent
a7e0270be1
commit
f978418d79
@ -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;
|
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
|
else // search all addressbooks, incl. accounts
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user