diff --git a/pandora_console/godmode/agentes/module_manager_editor_common.php b/pandora_console/godmode/agentes/module_manager_editor_common.php index 4925b22663..06d6b5556c 100644 --- a/pandora_console/godmode/agentes/module_manager_editor_common.php +++ b/pandora_console/godmode/agentes/module_manager_editor_common.php @@ -108,7 +108,12 @@ $page = get_parameter('page', ''); if (strstr($page, "policy_modules") === false && $id_agent_module) { if ($config['enterprise_installed']) - $disabledBecauseInPolicy = policies_is_module_in_policy($id_agent_module) && policies_is_module_linked($id_agent_module); + if(policies_is_module_linked($id_agent_module) == 1){ + $disabledBecauseInPolicy = 1; + } + else{ + $disabledBecauseInPolicy = 0; + } else $disabledBecauseInPolicy = false; if ($disabledBecauseInPolicy)