Enabled hiding base DNs that users dont have access to

This commit is contained in:
Deon George
2011-05-20 23:53:39 +10:00
parent 7649b9b826
commit ddb5ed0346
3 changed files with 10 additions and 1 deletions

View File

@@ -103,7 +103,7 @@ abstract class Tree {
$return = array();
foreach ($this->entries as $details)
if ($details->isBaseDN())
if ($details->isBaseDN() AND ((! $this->getServer()->getValue('server','hide_noaccess_base')) OR $details->isInLdap()))
array_push($return,$details);
return $return;