|
|
@@ -447,7 +447,7 @@ class KerioWhmcs extends KerioConnectApi {
|
|
|
*/
|
|
|
function createResouce($attr, $domain) {
|
|
|
$params = array(
|
|
|
- 'resources' => array(array(
|
|
|
+ 'resources' => array(
|
|
|
'name' => $attr['name'],
|
|
|
'description' => $attr['description'],
|
|
|
'type' => $attr['type'],
|
|
|
@@ -455,7 +455,7 @@ 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);
|