Skip to content

Commit

Permalink
Fix for FuseCP#104 (user groups bug)
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanSchulz committed Mar 11, 2022
1 parent 970f256 commit abd2cfe
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,8 @@ private void BindSettings()
if (EnableSecurityGroups)
{
//Security Groups
ExchangeAccount[] securGroups = ES.Services.Organizations.GetUserGroups(PanelRequest.ItemID, PanelRequest.AccountID);
//ExchangeAccount[] securGroups = ES.Services.Organizations.GetUserGroups(PanelRequest.ItemID, PanelRequest.AccountID);
ExchangeAccount[] securGroups = ES.Services.Organizations.GetSecurityGroupsByMember(PanelRequest.ItemID, PanelRequest.AccountID);

foreach (ExchangeAccount secGroup in securGroups)
{
Expand Down Expand Up @@ -161,7 +162,7 @@ private void SaveSettings()
oldGroups.Add(secGroup);
}
}

IDictionary<string, ExchangeAccountType> newGroups = groups.GetFullAccounts();

foreach (ExchangeAccount oldGroup in oldGroups)
Expand Down

0 comments on commit abd2cfe

Please sign in to comment.