diff --git a/html/includes/print-menubar.php b/html/includes/print-menubar.php index 32cdb26fe8..027341eeda 100644 --- a/html/includes/print-menubar.php +++ b/html/includes/print-menubar.php @@ -56,12 +56,14 @@ if (isset($config['enable_bgp']) && $config['enable_bgp']) foreach ($config['device_types'] as $devtype) { - echo('
  • ' . $devtype['text'] . '
  • '); + if (in_array($devtype['type'],array_keys($cache['device_types']))) + { + echo('
  • ' . $devtype['text'] . '
  • '); + } } -?> -= '10') { +if ($_SESSION['userlevel'] >= '10') +{ echo('

  • Add Device
  • @@ -121,13 +123,16 @@ if ($config['show_services'])