From f3488e2aa475f6dc2a1bb67021e70409ecfc18d3 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Thu, 4 May 2023 09:43:48 +0200 Subject: [PATCH] #11095 Fix id_policy_module in url --- pandora_console/godmode/agentes/module_manager.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 3cb5ce9787..0be7b555c7 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -769,7 +769,17 @@ if ($modules !== false) { } if (check_acl_one_of_groups($config['id_user'], $all_groups, 'AW') === true) { - $data[0] .= ''; + if ($isFunctionPolicies !== ENTERPRISE_NOT_HOOK) { + $linked = policies_is_module_linked($module['id_agente_modulo']); + $adopt = policies_is_module_adopt($module['id_agente_modulo']); + if ($linked !== false && $adopt === false) { + $data[0] .= ''; + } else { + $data[0] .= ''; + } + } else { + $data[0] .= ''; + } } if ((bool) $module['disabled'] === true) {