Added is_central_policies function

This commit is contained in:
fermin831 2018-07-10 17:49:46 +02:00
parent de58fe7b90
commit aaf8173b8a
1 changed files with 5 additions and 0 deletions

View File

@ -1363,6 +1363,11 @@ function is_metaconsole() {
return (bool) $config['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. * Checks if current execution is under an AJAX request.
* *