From bd48c96de466aab3c3b4f94a96da7d12404b427f Mon Sep 17 00:00:00 2001 From: samucarc Date: Mon, 21 Jan 2019 15:03:02 +0100 Subject: [PATCH] Fixed duplicated function module group synch in API Former-commit-id: 03b23a85223add6d8f730dbfebaf58fbf7839e2a --- pandora_console/include/functions_api.php | 31 ----------------------- 1 file changed, 31 deletions(-) diff --git a/pandora_console/include/functions_api.php b/pandora_console/include/functions_api.php index 720ca63b12..851a77b2a7 100644 --- a/pandora_console/include/functions_api.php +++ b/pandora_console/include/functions_api.php @@ -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. *