fixed tool visibility
This commit is contained in:
parent
b5102e8395
commit
661f4944a8
|
@ -61,6 +61,7 @@ echo "<div class=\"userlist-bright smallPaddingContent\">\n";
|
||||||
// print tools table
|
// print tools table
|
||||||
$container = new htmlTable();
|
$container = new htmlTable();
|
||||||
$container->addElement(new htmlTitle(_('Tools')), true);
|
$container->addElement(new htmlTitle(_('Tools')), true);
|
||||||
|
$toolSettings = $_SESSION['config']->getToolSettings();
|
||||||
|
|
||||||
for ($i = 0; $i < sizeof($tools); $i++) {
|
for ($i = 0; $i < sizeof($tools); $i++) {
|
||||||
// check access level
|
// check access level
|
||||||
|
@ -74,6 +75,10 @@ for ($i = 0; $i < sizeof($tools); $i++) {
|
||||||
if (!$tools[$i]->isVisible()) {
|
if (!$tools[$i]->isVisible()) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
// check if hidden by config
|
||||||
|
if (isset($toolSettings['tool_hide_' . get_class($tools[$i])]) && ($toolSettings['tool_hide_' . get_class($tools[$i])] == 'true')) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
// add tool
|
// add tool
|
||||||
$container->addElement(new htmlLink($tools[$i]->getName(), $tools[$i]->getLink(), '../graphics/' . $tools[$i]->getImageLink()));
|
$container->addElement(new htmlLink($tools[$i]->getName(), $tools[$i]->getLink(), '../graphics/' . $tools[$i]->getImageLink()));
|
||||||
$container->addElement(new htmlSpacer('10px', null));
|
$container->addElement(new htmlSpacer('10px', null));
|
||||||
|
|
Loading…
Reference in New Issue