Fixed mailbox plan user able to allocate unlimited mailbox size
This commit is contained in:
parent
04c4d5a189
commit
382f391948
1 changed files with 6 additions and 0 deletions
|
@ -1654,6 +1654,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
ExchangeMailboxPlan plan = GetExchangeMailboxPlan(itemId, mailboxPlanId);
|
||||
if (maxDiskSpace != -1)
|
||||
{
|
||||
if (plan.MailboxSizeMB == -1)
|
||||
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
|
||||
|
||||
if ((quotaUsed + plan.MailboxSizeMB) > (maxDiskSpace))
|
||||
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
|
||||
}
|
||||
|
@ -2575,6 +2578,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
|
||||
if (maxDiskSpace != -1)
|
||||
{
|
||||
if (plan.MailboxSizeMB == -1)
|
||||
return BusinessErrorCodes.ERROR_EXCHANGE_STORAGE_QUOTAS_EXCEED_HOST_VALUES;
|
||||
|
||||
ExchangeAccount exchangeAccount = GetAccount(itemId, accountId);
|
||||
if (exchangeAccount.MailboxPlanId > 0)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue