mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-26 00:29:38 +01:00
"fix for bug #764: \"Hide accounts from addressbook\" does not work with contacts in LDAP"
This commit is contained in:
parent
852f8149b2
commit
9c884e4b94
@ -702,7 +702,7 @@ class so_ldap
|
||||
$filters = '';
|
||||
foreach($filter as $key => $value)
|
||||
{
|
||||
if ($key != 'cat_id' && !$value) continue;
|
||||
if ($key != 'cat_id' && $key != 'account_id' && !$value) continue;
|
||||
|
||||
switch((string) $key)
|
||||
{
|
||||
@ -710,6 +710,18 @@ class so_ldap
|
||||
case 'tid': // ignored
|
||||
break;
|
||||
|
||||
case 'account_id':
|
||||
if (is_null($value))
|
||||
{
|
||||
$filters .= '(!(uidNumber=*))';
|
||||
}
|
||||
elseif ($value)
|
||||
{
|
||||
$filters .= '(uidNumber='.ldap::quote($value).')';
|
||||
|
||||
}
|
||||
break;
|
||||
|
||||
case 'cat_id':
|
||||
if (is_null($value))
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user