|
|
@@ -447,7 +447,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
*/
|
|
|
function createResouce($attr, $domain) {
|
|
|
$params = array(
|
|
|
- 'resources' => array(
|
|
|
+ 'resources' => array(array(
|
|
|
'name' => $attr['name'],
|
|
|
'description' => $attr['description'],
|
|
|
'type' => $attr['type'],
|
|
|
@@ -455,19 +455,10 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
'resourceUsers' => array('id' => $domain, 'type' => 'AuthDomainPrincipal'),
|
|
|
'manager' => array('id' => $attr['manager'], 'type' => 'UserPrincipal'),
|
|
|
'domainId' => $domain
|
|
|
- )
|
|
|
+ ))
|
|
|
);
|
|
|
|
|
|
$result = $this->sendRequest('Resources.create', $params);
|
|
|
-
|
|
|
- logModuleCall(
|
|
|
- 'kerioEmail',
|
|
|
- __FUNCTION__,
|
|
|
- $result,
|
|
|
- 'Debug Error',
|
|
|
- $params
|
|
|
- );
|
|
|
-
|
|
|
return $result;
|
|
|
}
|
|
|
|