diff --git a/pandora_console/godmode/massive/massive_add_profiles.php b/pandora_console/godmode/massive/massive_add_profiles.php index be5e9c92dc..ecc92de3ee 100644 --- a/pandora_console/godmode/massive/massive_add_profiles.php +++ b/pandora_console/godmode/massive/massive_add_profiles.php @@ -38,6 +38,14 @@ if (!check_acl($config['id_user'], 0, 'UM')) { return; } +if (is_management_allowed() === false) { + ui_print_warning_message( + __('This node is configured with centralized mode. All profiles user information is read only. Go to metaconsole to manage it.') + ); + + return; +} + require_once 'include/functions_agents.php'; require_once 'include/functions_alerts.php'; require_once $config['homedir'].'/include/functions_profile.php'; diff --git a/pandora_console/godmode/massive/massive_delete_profiles.php b/pandora_console/godmode/massive/massive_delete_profiles.php index 47c4875f48..c3736ccc00 100644 --- a/pandora_console/godmode/massive/massive_delete_profiles.php +++ b/pandora_console/godmode/massive/massive_delete_profiles.php @@ -38,6 +38,14 @@ if (! check_acl($config['id_user'], 0, 'UM')) { return; } +if (is_management_allowed() === false) { + ui_print_warning_message( + __('This node is configured with centralized mode. All profiles user information is read only. Go to metaconsole to manage it.') + ); + + return; +} + require_once 'include/functions_agents.php'; require_once 'include/functions_alerts.php'; require_once $config['homedir'].'/include/functions_profile.php';