mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
webui: Always show the Services menu if global show_service is enabled (#5906)
* Always show the Services menu if global show_service is enabled * Add global service check if statement
This commit is contained in:
committed by
Neil Lathwood
co-authored by
Neil Lathwood
parent
cbaab1462f
commit
e017f7a71b
@@ -278,7 +278,7 @@ if (device_permitted($vars['device']) || $check_device == $vars['device']) {
|
||||
</li>';
|
||||
}
|
||||
|
||||
if (dbFetchCell("SELECT COUNT(service_id) FROM services WHERE device_id = '".$device['device_id']."'") > '0') {
|
||||
if ($config['show_services']) {
|
||||
echo '<li class="'.$select['services'].'">
|
||||
<a href="'.generate_device_url($device, array('tab' => 'services')).'">
|
||||
<i class="fa fa-cogs fa-lg icon-theme" aria-hidden="true"></i> Services
|
||||
|
||||
Reference in New Issue
Block a user