From b85070694e1cf4c4d6b81b3796822aff9e2d3f9a Mon Sep 17 00:00:00 2001 From: mdtrooper Date: Tue, 15 Feb 2011 11:41:28 +0000 Subject: [PATCH] 2011-02-15 Miguel de Dios * godmode/agentes/module_manager.php: erased the "prediction module" for policy view. Fixes: #3175826 git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3841 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 7 +++++++ pandora_console/godmode/agentes/module_manager.php | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 70acecc12a..f9944118c2 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,10 @@ +2011-02-15 Miguel de Dios + + * godmode/agentes/module_manager.php: erased the "prediction module" for + policy view. + + Fixes: #3175826 + 2011-02-15 Miguel de Dios * godmode/groups/group_list.php: moved check ACL bottom the ajax call and diff --git a/pandora_console/godmode/agentes/module_manager.php b/pandora_console/godmode/agentes/module_manager.php index 8124135e26..a670ee8ebd 100644 --- a/pandora_console/godmode/agentes/module_manager.php +++ b/pandora_console/godmode/agentes/module_manager.php @@ -55,6 +55,12 @@ if ($prediction_available) $modules['predictionserver'] = __('Create a new prediction server module'); enterprise_hook ('set_enterprise_module_types', array (&$modules)); + +$sec2 = get_parameter('sec2', ''); +if (strstr($sec2, "enterprise/godmode/policies/policies") !== false) { + unset($modules['predictionserver']); +} + print_select ($modules, 'moduletype', '', '', '', '', false, false, false); print_input_hidden ('edit_module', 1); echo '';