|
|
@@ -399,7 +399,7 @@ function zimbraSingle_CreateAccount($params) {
|
|
|
$addonQuota = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0;
|
|
|
$newAddQuota = $params['configoptions']['newAddQuota'] ? $params['configoptions']['newAddQuota'] : 0;
|
|
|
$attrs['zimbraMailQuota'] = ($baseQuota + $addonQuota + $newAddQuota) * 1073741824;
|
|
|
- if(($params['configoptions']['nc'] == 'yes') && ($params['configoptions']['ncUrl'] != '')) {
|
|
|
+ if(($params['configoptions3'] == 'yes') && ($params['configoptions4'] != '')) {
|
|
|
$attrs['zimbraZimletAvailableZimlets'] = array('!com_zextras_drive_open', '!zimbra_zimlet_nextcloud');
|
|
|
}
|
|
|
$zimbraID = $apiAccountManager->createAccount($params['username'], $params['password'], $attrs);
|
|
|
@@ -619,8 +619,8 @@ function zimbraSingle_ChangePackage($params) {
|
|
|
$addonQuota = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0;
|
|
|
$newAddQuota = $params['configoptions']['newAddQuota'] ? $params['configoptions']['newAddQuota'] : 0;
|
|
|
$attrs['zimbraMailQuota'] = ($baseQuota + $addonQuota +$newAddQuota) * 1073741824;
|
|
|
- if(($params['configoptions']['nc'] == 'yes') && ($params['configoptions']['ncUrl'] != '')) {
|
|
|
- $attrs['zimbraZimletAvailableZimlets'] = '!com_zextras_drive_open';
|
|
|
+ if(($params['configoptions3'] == 'yes') && ($params['configoptions4'] != '')) {
|
|
|
+ $attrs['zimbraZimletAvailableZimlets'] = array('!com_zextras_drive_open', '!zimbra_zimlet_nextcloud');
|
|
|
}
|
|
|
$response = $apiAccountManager->modifyAccount($params['username'], $attrs);
|
|
|
if(is_a($response, 'Exception')) {
|