From 2ad89f330a71555aef749b827856c6f57a03894e Mon Sep 17 00:00:00 2001 From: Virtuworks Date: Thu, 15 Nov 2012 21:18:46 -0500 Subject: [PATCH] Retest wsp-10046 --- .../Code/HostedSolution/OrganizationController.cs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs index 783081a1..f72f9e06 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Code/HostedSolution/OrganizationController.cs @@ -1123,14 +1123,14 @@ namespace WebsitePanel.EnterpriseServer if (!string.IsNullOrEmpty(org.GlobalAddressList)) { ExchangeServerController.AddAuthoritativeDomain(itemId, domain.DomainId); + } - OrganizationStatistics orgStatsExchange = ExchangeServerController.GetOrganizationStatistics(itemId); + OrganizationStatistics orgStatsExchange = ExchangeServerController.GetOrganizationStatistics(itemId); - if ((orgStatsExchange.AllocatedMailboxes > -1) == false) - { - ExchangeAcceptedDomainType newDomainType = ExchangeAcceptedDomainType.InternalRelay; - ChangeOrganizationDomainType(itemId, domain.DomainId, newDomainType); - } + if (orgStatsExchange.AllocatedMailboxes == -1) + { + ExchangeAcceptedDomainType newDomainType = ExchangeAcceptedDomainType.InternalRelay; + ChangeOrganizationDomainType(itemId, domain.DomainId, newDomainType); } if (org.IsOCSOrganization)