forked from extern/egroupware
modify filters where extra_table.contact_owner is involved. (reason:ambiguous column error)
This commit is contained in:
parent
765a1d5c09
commit
4756705182
@ -121,8 +121,8 @@ class addressbook_sql extends so_sql_cf
|
||||
{
|
||||
$filter[] = $this->table_name.'.contact_owner != 0'; // in case there have been accounts in sql previously
|
||||
}
|
||||
$filter[] = "(contact_owner=".(int)$GLOBALS['egw_info']['user']['account_id'].
|
||||
" OR contact_private=0 AND contact_owner IN (".
|
||||
$filter[] = "(".$this->table_name.".contact_owner=".(int)$GLOBALS['egw_info']['user']['account_id'].
|
||||
" OR contact_private=0 AND ".$this->table_name.".contact_owner IN (".
|
||||
implode(',',array_keys($this->grants))."))";
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user