mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-29 00:34:46 +02:00
Fixed duplicated function module group synch in API
Former-commit-id: 03b23a85223add6d8f730dbfebaf58fbf7839e2a
This commit is contained in:
parent
367c9fc6fc
commit
bd48c96de4
@ -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.
|
* Update a service.
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user