diff --git a/pandora_console/operation/tree2.php b/pandora_console/operation/tree2.php index eada42a9c3..e386827a5b 100644 --- a/pandora_console/operation/tree2.php +++ b/pandora_console/operation/tree2.php @@ -16,14 +16,17 @@ global $config; -require_once("include/class/Tree.class.php"); - $tab = get_parameter('tab', 'group'); $search = get_parameter('search', ''); $status = get_parameter('status', AGENT_STATUS_ALL); // ---------------------Tabs ------------------------------------------- +$enterpriseEnable = false; +if (enterprise_include_once('include/functions_policies.php') !== ENTERPRISE_NOT_HOOK) { + $enterpriseEnable = true; +} + $url = 'index.php?' . 'sec=estado&' . 'sec2=operation/tree&' . @@ -62,6 +65,14 @@ $tabs['tag'] = array( array("title" => __('Tags'))) . "", 'active' => ($tab == "tag")); +if ($enterpriseEnable) { + $tabs['policies'] = array( + 'text' => "" . + html_print_image("images/policies_mc.png", true, + array("title" => __('Policies'))) . "", + 'active' => ($tab == "policies")); +} + $header_title = ""; switch ($tab) { case 'os':