From eab744f65d69152ae01bb8cb33407db6ef275bf7 Mon Sep 17 00:00:00 2001 From: samucarc Date: Wed, 12 Dec 2018 20:26:38 +0100 Subject: [PATCH] Fixed minor error Former-commit-id: 2af6e231aa20216a4601a8c1a03fa6828c989448 --- pandora_console/godmode/massive/massive_operations.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/pandora_console/godmode/massive/massive_operations.php b/pandora_console/godmode/massive/massive_operations.php index 276ab4c478..ed69d49f25 100755 --- a/pandora_console/godmode/massive/massive_operations.php +++ b/pandora_console/godmode/massive/massive_operations.php @@ -32,6 +32,14 @@ enterprise_include ('godmode/massive/massive_operations.php'); $tab = (string) get_parameter ('tab', 'massive_agents'); $option = (string) get_parameter ('option', ''); +if ($tab == 'massive_policies' && is_central_policies_on_node()){ + ui_print_warning_message(__('This node is configured with centralized mode. All policies information is read only. Go to metaconsole to manage it.')); + db_pandora_audit("ACL Violation", + "Trying to access massive operation section"); + require ("general/noaccess.php"); + return; +} + $options_alerts = array( 'add_alerts' => __('Bulk alert add'), 'delete_alerts' => __('Bulk alert delete'),