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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user