Fixed duplicated function module group synch in API

Former-commit-id: 03b23a85223add6d8f730dbfebaf58fbf7839e2a
This commit is contained in:
samucarc 2019-01-21 15:03:02 +01:00
parent 367c9fc6fc
commit bd48c96de4
1 changed files with 0 additions and 31 deletions

View File

@ -10691,37 +10691,6 @@ function api_set_create_service($thrash1, $thrash2, $other, $thrash3) {
}
function api_set_module_group_synch($thrash1, $thrash2, $other, $returnType) {
global $config;
enterprise_include_once ('meta/include/functions_meta.php');
if (is_metaconsole()) {
if (!check_acl($config['id_user'], 0, "PM")) {
returnError('forbidden', 'string');
return;
}
$targets = array();
foreach ($other['data'] as $server) {
$targets[] = $server;
}
$return = meta_module_group_synchronizing($targets);
// User feedback
returnData ($returnType, array('type' => 'array', 'data' => $return));
}
else{
returnError ('not_defined_in_metaconsole',__('This function is only for metaconsole'));
}
}
/**
* Update a service.
*