Kaynağa Gözat

add ressources

andre 2 yıl önce
ebeveyn
işleme
53df749138
2 değiştirilmiş dosya ile 2 ekleme ve 10 silme
  1. 2 2
      api/KerioWhmcs.php
  2. 0 8
      api/class/KerioApi.php

+ 2 - 2
api/KerioWhmcs.php

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

+ 0 - 8
api/class/KerioApi.php

@@ -471,14 +471,6 @@ class KerioApi implements KerioApiInterface {
 		}
 		$json_request = json_encode($request);
 
-		logModuleCall(
-            'kerioEmail',
-            __FUNCTION__,
-            $json_request,
-            'Debug Error',
-            $params
-        );
-
 		/* Send data to server */
 		$json_response = $this->send('POST', $json_request);
 		/* Return */