diff --git a/lam/lib/tools/fileUpload.inc b/lam/lib/tools/fileUpload.inc index a2943cee..8839b736 100644 --- a/lam/lib/tools/fileUpload.inc +++ b/lam/lib/tools/fileUpload.inc @@ -1,9 +1,10 @@ \ No newline at end of file diff --git a/lam/lib/tools/schemaBrowser.inc b/lam/lib/tools/schemaBrowser.inc index dbe9b38e..0a9d7b4b 100644 --- a/lam/lib/tools/schemaBrowser.inc +++ b/lam/lib/tools/schemaBrowser.inc @@ -1,4 +1,5 @@ \ No newline at end of file diff --git a/lam/lib/tools/serverInfo.inc b/lam/lib/tools/serverInfo.inc index 4f979f90..f65c1a36 100644 --- a/lam/lib/tools/serverInfo.inc +++ b/lam/lib/tools/serverInfo.inc @@ -1,20 +1,21 @@ \ No newline at end of file diff --git a/lam/lib/tools/tests.inc b/lam/lib/tools/tests.inc index f0a8be2f..e9ff660d 100644 --- a/lam/lib/tools/tests.inc +++ b/lam/lib/tools/tests.inc @@ -1,20 +1,21 @@ name = _("Lamdaemon test"); $lamdaemonTest->link = 'tests/lamdaemonTest.php'; $lamdaemonTest->description = _("Check if quotas and homedirectories can be managed."); $lamdaemonTest->image = 'lamdaemonSmall.png'; $return[] = $lamdaemonTest; - $schemaTest = new LAMSubTool(); + $schemaTest = new \LAMSubTool(); $schemaTest->name = _("Schema test"); $schemaTest->link = 'tests/schemaTest.php'; $schemaTest->description = _("Check if the LDAP schema fits the requirements of the selected account modules."); @@ -120,7 +121,7 @@ class toolTests implements LAMTool { $return[] = $schemaTest; return $return; } - + /** * Returns if the tool is visible in the menu. * @@ -129,16 +130,16 @@ class toolTests implements LAMTool { function isVisible() { return (sizeof($_SESSION['config']->get_ActiveTypes()) > 0); } - + /** * Returns if a tool may be hidden by configuration in the LAM server profile. - * + * * @return boolean hideable */ function isHideable() { return true; } - + } ?> \ No newline at end of file diff --git a/lam/templates/multiEdit.php b/lam/templates/multiEdit.php index 22547ba6..274d0ce9 100644 --- a/lam/templates/multiEdit.php +++ b/lam/templates/multiEdit.php @@ -1,4 +1,22 @@ addElement(new htmlOutputText(_('LDAP suffix'))); $suffixGroup = new htmlTable(); - $types = $_SESSION['config']->get_ActiveTypes(); + $typeManager = new \LAM\TYPES\TypeManager(); + $types = $typeManager->getConfiguredTypes(); $suffixes = array(); foreach ($types as $type) { - $suffixes[LAM\TYPES\getTypeAlias($type)] = $_SESSION['config']->get_Suffix($type); - $hideRules[$_SESSION['config']->get_Suffix($type)] = array('otherSuffix'); + if ($type->isHidden()) { + continue; + } + $suffixes[$type->getAlias()] = $type->getSuffix(); + $hideRules[$type->getSuffix()] = array('otherSuffix'); } $treeSuffix = $_SESSION['config']->get_Suffix('tree'); if (!empty($treeSuffix)) {