From 51c041806b633205a2553ff5f5b82e955db27e89 Mon Sep 17 00:00:00 2001 From: vfedosevich Date: Thu, 19 Dec 2013 15:30:40 +0300 Subject: [PATCH] fix permissions --- .../EnterpriseStorage/EnterpriseStorageController.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs index c4b90813..6903128c 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs @@ -501,9 +501,9 @@ namespace WebsitePanel.EnterpriseServer foreach (ExchangeAccount tmpAccount in tmpAccounts.ToArray()) { - if (tmpAccount.AccountType == ExchangeAccountType.SecurityGroup || tmpAccount.AccountType == ExchangeAccountType.SecurityGroup + if (tmpAccount.AccountType == ExchangeAccountType.SecurityGroup || tmpAccount.AccountType == ExchangeAccountType.DefaultSecurityGroup ? OrganizationController.GetSecurityGroupGeneralSettings(itemId, tmpAccount.AccountId) == null - : OrganizationController.GetSecurityGroupGeneralSettings(itemId, tmpAccount.AccountId) == null) + : OrganizationController.GetUserGeneralSettings(itemId, tmpAccount.AccountId) == null) continue; exAccounts.Add(tmpAccount);