From 7d2efc49c47c684cf0beabf28f1e1e51cafdfa42 Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Tue, 3 Feb 2015 00:39:36 -0800 Subject: [PATCH] fixed bug(update check quota) --- .../WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs index a4380cb9..2854f39c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs @@ -136,7 +136,7 @@ namespace WebsitePanel.Portal.HostedSolution var accountType = (ExchangeAccountType)gvUsers.DataKeys[rowIndex][1]; - if (cntx.Quotas.ContainsKey(Quotas.ORGANIZATION_DELETED_USERS) && accountType != ExchangeAccountType.User) + if (Utils.CheckQouta(Quotas.ORGANIZATION_DELETED_USERS, cntx) && accountType != ExchangeAccountType.User) { chkEnableForceArchiveMailbox.Visible = true; @@ -362,7 +362,7 @@ namespace WebsitePanel.Portal.HostedSolution { int result = 0; - if (cntx.Quotas.ContainsKey(Quotas.ORGANIZATION_DELETED_USERS)) + if (Utils.CheckQouta(Quotas.ORGANIZATION_DELETED_USERS, cntx)) { result = ES.Services.Organizations.SetDeletedUser(PanelRequest.ItemID, int.Parse(hdAccountId.Value), chkEnableForceArchiveMailbox.Checked); }