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 .= '
- ' . ' ';
$buffer .= '' .
- ui_print_truncate_text($title, 46);
+ ui_print_truncate_text($title, 'item_title');
if ($modal && !enterprise_installed()){
$buffer .= "
diff --git a/pandora_console/operation/agentes/alerts_status.php b/pandora_console/operation/agentes/alerts_status.php
index 2172bd555b..5a40e588da 100755
--- a/pandora_console/operation/agentes/alerts_status.php
+++ b/pandora_console/operation/agentes/alerts_status.php
@@ -417,9 +417,11 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
__('S.') . "";
if (!is_metaconsole()) {
- $table->head[2] =
- "" .
- __('F.') . "";
+ if (check_acl($config['id_user'], $id_group, "AW") || check_acl($config['id_user'], $id_group, "LM")) {
+ $table->head[2] =
+ "" .
+ __('F.') . "";
+ }
}
$table->head[3] = __('Agent');
@@ -460,7 +462,8 @@ if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) {
$table->head[1] = "" . __('S.') . "";
if (!is_metaconsole()) {
- $table->head[2] = "" . __('F.') . "";
+ if (check_acl($config['id_user'], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM"))
+ $table->head[2] = "" . __('F.') . "";
}
$table->head[3] = __('Module');
@@ -493,7 +496,8 @@ else {
if ($print_agent) {
$table->head[0] = "" . __('S.') . "";
if (!is_metaconsole()) {
- $table->head[1] = "" . __('F.') . "";
+ if (check_acl($config['id_user'], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM"))
+ $table->head[1] = "" . __('F.') . "";
}
$table->head[2] = __('Agent');
$table->head[3] = __('Module');
@@ -527,7 +531,8 @@ else {
else {
$table->head[0] = "" . __('S.') . "";
if (!is_metaconsole()) {
- $table->head[1] = "" . __('F.') . "";
+ if (check_acl($config['id_user'], $id_group, "AW") || check_acl ($config["id_user"], $id_group, "LM"))
+ $table->head[1] = "" . __('F.') . "";
}
$table->head[2] = __('Module');
$table->head[3] = __('Template');
diff --git a/pandora_console/operation/agentes/estado_generalagente.php b/pandora_console/operation/agentes/estado_generalagente.php
index e93842307f..7210da2354 100755
--- a/pandora_console/operation/agentes/estado_generalagente.php
+++ b/pandora_console/operation/agentes/estado_generalagente.php
@@ -616,7 +616,8 @@ $table->rowspan[1][0] = 0;
$data[0][2] = '
';
$data[0][2] .= '
' . html_print_image("images/refresh.png", true, array("border" => '0', "title" => __('Refresh data'), "alt" => "")) . '';
-$data[0][2] .= '
' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'), "alt" => "")) . '';
+if (check_acl ($config["id_user"], $agent["id_grupo"], "AW"))
+ $data[0][2] .= '
' . html_print_image("images/target.png", true, array("border" => '0', "title" => __('Force'), "alt" => "")) . '';
$data[0][2] .= '
';
$table->data = $data;