andre 2 лет назад
Родитель
Сommit
1d79e333e9
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      api/KerioWhmcs.php

+ 1 - 1
api/KerioWhmcs.php

@@ -452,7 +452,7 @@ class KerioWhmcs extends KerioConnectApi {
 				'description' => $attr['description'],
 				'description' => $attr['description'],
 				'type' => $attr['type'],
 				'type' => $attr['type'],
 				'isEnabled' => $attr['status'] === 'active' ? TRUE : FALSE,
 				'isEnabled' => $attr['status'] === 'active' ? TRUE : FALSE,
-				'resourceUsers' => array('id' => $domain, 'type' => 'AuthDomainPrincipal'),
+				'resourceUsers' => array(array('id' => $domain, 'type' => 'AuthDomainPrincipal')),
 				'manager' => array('id' => $attr['manager'], 'type' => 'UserPrincipal'),
 				'manager' => array('id' => $attr['manager'], 'type' => 'UserPrincipal'),
 				'domainId' => $domain
 				'domainId' => $domain
 			))
 			))