From e883312038d54965ffadf7ea4b5a5519a3833be4 Mon Sep 17 00:00:00 2001 From: Jose Gonzalez Date: Mon, 30 Mar 2020 08:22:07 +0200 Subject: [PATCH] Modified menu --- pandora_console/godmode/menu.php | 38 ++++++++++++++++++-------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/pandora_console/godmode/menu.php b/pandora_console/godmode/menu.php index 6b4938d4a5..fe42097b26 100644 --- a/pandora_console/godmode/menu.php +++ b/pandora_console/godmode/menu.php @@ -137,25 +137,31 @@ if (!empty($sub)) { $sub = []; if (check_acl($config['id_user'], 0, 'PM')) { - $sub['godmode/modules/manage_network_components']['text'] = __('Remote components'); - $sub['godmode/modules/manage_network_components']['id'] = 'Network components'; - enterprise_hook('components_submenu'); - $sub['configuration_wizard_setup']['text'] = __('Wizard Setup'); - $sub['configuration_wizard_setup']['id'] = 'Wizard Setup'; - $sub['configuration_wizard_setup']['type'] = 'direct'; - $sub['configuration_wizard_setup']['subtype'] = 'nolink'; + // enterprise_hook('components_submenu'); + $sub['templates']['text'] = __('Templates'); + $sub['templates']['id'] = 'Templates'; + $sub['templates']['type'] = 'direct'; + $sub['templates']['subtype'] = 'nolink'; $sub2 = []; + $sub2['godmode/modules/manage_block_templates']['text'] = __('Module templates'); + $sub2['godmode/modules/manage_block_templates']['id'] = 'Module templates'; $sub2['godmode/modules/private_enterprise_numbers']['text'] = __('Private Enterprise Numbers'); $sub2['godmode/modules/private_enterprise_numbers']['id'] = 'Private Enterprise Numbers'; - $sub2['godmode/modules/manage_snmp_modules']['text'] = __('SNMP Modules'); - $sub2['godmode/modules/manage_snmp_modules']['id'] = 'SNMP Modules'; - $sub2['godmode/modules/manage_wmi_modules']['text'] = __('WMI Modules'); - $sub2['godmode/modules/manage_wmi_modules']['id'] = 'WMI Modules'; - $sub['configuration_wizard_setup']['sub2'] = $sub2; - $sub['godmode/modules/manage_block_templates']['text'] = __('Module blocks'); - $sub['godmode/modules/manage_block_templates']['id'] = 'Module blocks'; - $sub['godmode/modules/manage_network_templates']['text'] = __('Module templates (legacy)'); - $sub['godmode/modules/manage_network_templates']['id'] = 'Module templates'; + $sub2['enterprise/godmode/modules/local_components']['text'] = __('Local components'); + $sub2['enterprise/godmode/modules/local_components']['id'] = 'Local components'; + $sub2['godmode/modules/manage_network_components']['text'] = __('Remote components'); + $sub2['godmode/modules/manage_network_components']['id'] = 'Network components'; + $sub['templates']['sub2'] = $sub2; + /* + $sub2['godmode/modules/manage_snmp_modules']['text'] = __('SNMP Modules'); + $sub2['godmode/modules/manage_snmp_modules']['id'] = 'SNMP Modules'; + $sub2['godmode/modules/manage_wmi_modules']['text'] = __('WMI Modules'); + $sub2['godmode/modules/manage_wmi_modules']['id'] = 'WMI Modules'; + $sub['godmode/modules/manage_block_templates']['text'] = __('Module blocks'); + $sub['godmode/modules/manage_block_templates']['id'] = 'Module blocks'; + */ + + enterprise_hook('inventory_submenu'); enterprise_hook('autoconfiguration_menu'); enterprise_hook('agent_repository_menu');