1
0
mirror of https://github.com/bitwarden/directory-connector synced 2026-01-06 02:23:35 +00:00

only force if there are non disabled/deleted users

This commit is contained in:
Kyle Spearrin
2017-05-18 08:59:43 -04:00
parent 24da4e91a5
commit d20a7e8d72

View File

@@ -55,7 +55,7 @@ namespace Bit.Core.Services
List<GroupEntry> groups = null;
if(SettingsService.Instance.Sync.SyncGroups)
{
groups = await GetGroupsAsync(force || users.Any());
groups = await GetGroupsAsync(force || users.Any(u => !u.Deleted && !u.Disabled));
}
return new Tuple<List<GroupEntry>, List<UserEntry>>(groups, users);