From aaf8173b8aa4b448b99e2c6576f4bf944ce3542b Mon Sep 17 00:00:00 2001 From: fermin831 Date: Tue, 10 Jul 2018 17:49:46 +0200 Subject: [PATCH] Added is_central_policies function --- pandora_console/include/functions.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pandora_console/include/functions.php b/pandora_console/include/functions.php index 6adcfa475b..240b06e5b9 100644 --- a/pandora_console/include/functions.php +++ b/pandora_console/include/functions.php @@ -1363,6 +1363,11 @@ function is_metaconsole() { return (bool) $config['metaconsole']; } +function is_central_policies() { + global $config; + return is_metaconsole() && $config["centralized_management"]; +} + /** * Checks if current execution is under an AJAX request. *