Add enterprise_hook filter to all config_agents_has_remote_configuration functions/6 - #41

This commit is contained in:
enriquecd 2017-02-02 19:28:13 +01:00
parent c50879c5a5
commit c9ab28eb2d
3 changed files with 3 additions and 3 deletions

View File

@ -542,7 +542,7 @@ if ($agents !== false) {
// Has remote configuration ?
if (enterprise_installed()) {
enterprise_include_once('include/functions_config_agents.php');
if (config_agents_has_remote_configuration($agent["id_agente"])) {
if (enterprise_hook('config_agents_has_remote_configuration',$agent["id_agente"])) {
echo "<a href='index.php?" .
"sec=gagente&" .
"sec2=godmode/agentes/configurar_agente&" .

View File

@ -386,7 +386,7 @@ switch ($moduletype) {
$remote_conf = false;
if (enterprise_installed()) {
enterprise_include_once('include/functions_config_agents.php');
$remote_conf = config_agents_has_remote_configuration($id_agente);
$remote_conf = enterprise_hook('config_agents_has_remote_configuration',$id_agente);
}
/* Categories is an array containing the allowed module types

View File

@ -231,7 +231,7 @@ function modules_copy_agent_module_to_agent ($id_agent_module, $id_destiny_agent
if ($module['id_modulo'] == MODULE_DATA) {
if (enterprise_installed()) {
if (config_agents_has_remote_configuration($id_agente)) {
if (enterprise_hook('config_agents_has_remote_configuration',$id_agente)) {
$result = enterprise_hook(
'config_agents_copy_agent_module_to_agent',
array($id_agent_module, $id_new_module));