From ee832c31ea2be5f177e801397c2afb002c88518e Mon Sep 17 00:00:00 2001 From: darode Date: Fri, 3 Feb 2012 11:01:12 +0000 Subject: [PATCH] 2012-02-03 Dario Rodriguez * general/main_menu.php: Fixed godmode menu header visualization. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@5483 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 4 ++++ pandora_console/general/main_menu.php | 12 +++++++++++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index d811ccb1e4..c5dced4016 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,7 @@ +2012-02-03 Dario Rodriguez + + * general/main_menu.php: Fixed godmode menu header visualization. + 2012-02-03 Junichi Satoh * include/help/ja/help_snmp_alert_custom.php: Changed title. diff --git a/pandora_console/general/main_menu.php b/pandora_console/general/main_menu.php index 52ba9beaf4..8d07f137c1 100644 --- a/pandora_console/general/main_menu.php +++ b/pandora_console/general/main_menu.php @@ -23,7 +23,17 @@ if (! isset ($config["id_user"])) { echo '
:: '.__('Operation').' ::
'; require ("operation/menu.php"); -echo '
:: '.__('Administration').' ::
'; +//Check all enterprise ACL used in godmenu items to print menu headers +if (check_acl ($config['id_user'], 0, "AW") || + check_acl ($config['id_user'], 0, "PM") || + check_acl ($config['id_user'], 0, "LM") || + check_acl ($config['id_user'], 0, "UM") || + check_acl ($config['id_user'], 0, "LW") || + check_acl ($config['id_user'], 0, "IW") || + check_acl ($config['id_user'], 0, "DW")) { + echo '
:: '.__('Administration').' ::
'; +} + require ("godmode/menu.php"); require ("links_menu.php");