diff --git a/pandora_console/include/ajax/module.php b/pandora_console/include/ajax/module.php index 3f587191b2..d6a44771ca 100755 --- a/pandora_console/include/ajax/module.php +++ b/pandora_console/include/ajax/module.php @@ -690,8 +690,8 @@ if ($list_modules) { $table->data = array (); $isFunctionPolicies = enterprise_include_once ('include/functions_policies.php'); - - $table->head[0] = "" . __('F.') . ""; + if ($agent_w) + $table->head[0] = "" . __('F.') . ""; if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { $table->head[1] = "" . __('P.') . ""; @@ -744,17 +744,19 @@ if ($list_modules) { $data = array (); if (($module["id_modulo"] != 1) && ($module["id_tipo_modulo"] != 100)) { - if ($module["flag"] == 0) { - $data[0] = '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'))) . ''; - } - else { - $data[0] = '' . html_print_image("images/refresh.png", true, array("border" => "0", "title" => __("Refresh"))) . ''; + if ($agent_w) { + if ($module["flag"] == 0) { + $data[0] = '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'))) . ''; + } + else { + $data[0] = '' . html_print_image("images/refresh.png", true, array("border" => "0", "title" => __("Refresh"))) . ''; + } } } else { diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 90aa67927b..11c9f2c894 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -816,13 +816,15 @@ function ui_format_alert_row ($alert, $agent = true, $url = '', $agent_style = f if (!defined('METACONSOLE')) { // Force alert execution $data[$index['force_execution']] = ''; - if ($alert["force_execution"] == 0) { - $data[$index['force_execution']] = - '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'))) . ''; - } - else { - $data[$index['force_execution']] = - '' . html_print_image("images/refresh.png", true) . ''; + if (check_acl ($config["id_user"], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM")) { + if ($alert["force_execution"] == 0) { + $data[$index['force_execution']] = + '' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'))) . ''; + } + else { + $data[$index['force_execution']] = + '' . html_print_image("images/refresh.png", true) . ''; + } } } @@ -2416,7 +2418,7 @@ function ui_print_page_header ($title, $icon = "", $return = false, $help = "", $buffer .= '