diff --git a/pandora_console/extensions/resource_registration.php b/pandora_console/extensions/resource_registration.php index f1fc645179..ac2f7658db 100755 --- a/pandora_console/extensions/resource_registration.php +++ b/pandora_console/extensions/resource_registration.php @@ -1047,8 +1047,8 @@ function process_upload_xml($xml) // Extract policies. if ($hook_enterprise === true) { - $centralized_management = !is_central_policies_on_node(); - if ($centralized_management) { + $centralized_management = is_management_allowed(); + if ($centralized_management === true) { process_upload_xml_policy($xml, $group_filter); } } @@ -1080,9 +1080,10 @@ function resource_registration_extension_main() return; } - $centralized_management = !is_central_policies_on_node(); - if (!$centralized_management) { - ui_print_warning_message(__('This node is configured with centralized mode. Go to metaconsole to create a policy.')); + if (is_management_allowed() === false) { + ui_print_warning_message( + __('This node is configured with centralized mode. Go to metaconsole to create a policy.') + ); } echo '