|
|
@@ -607,13 +607,6 @@ function zimbraSingle_ChangePackage($params) {
|
|
|
$addonQuota = $params['configoptions']['addonQuota'] ? $params['configoptions']['addonQuota'] : 0;
|
|
|
$newQuota = ($baseQuota + $addonQuota) * 1073741824;
|
|
|
$accountQuota = $apiAccountManager->getQuota($params['username']);
|
|
|
- logModuleCall(
|
|
|
- 'zimbrasingle',
|
|
|
- __FUNCTION__,
|
|
|
- $newQuota,
|
|
|
- 'Debug',
|
|
|
- $accountQuota
|
|
|
- );
|
|
|
if(is_a($accountQuota, 'Exception')) {
|
|
|
logModuleCall(
|
|
|
'zimbrasingle',
|
|
|
@@ -624,9 +617,6 @@ function zimbraSingle_ChangePackage($params) {
|
|
|
);
|
|
|
return 'Error: could not fetch account quota for '. $params['username'];
|
|
|
}
|
|
|
- if ($newQuota < $accountQuota) {
|
|
|
- return 'Error: quota cannot be decreased';
|
|
|
- }
|
|
|
$response = $apiAccountManager->modifyAccount($params['username'], ['zimbraMailQuota' => $newQuota,]);
|
|
|
if(is_a($response, 'Exception')) {
|
|
|
logModuleCall(
|