1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-03 00:52:49 -05:00

always update associations on group/coll updates

This commit is contained in:
Kyle Spearrin
2017-11-24 11:53:15 -05:00
parent 0502ba2451
commit 49372bed38
2 changed files with 3 additions and 11 deletions

View File

@ -61,13 +61,13 @@ namespace Bit.Core.Services
}
else
{
if(groups == null || !org.UseGroups)
if(!org.UseGroups)
{
await _collectionRepository.ReplaceAsync(collection);
}
else
{
await _collectionRepository.ReplaceAsync(collection, groups);
await _collectionRepository.ReplaceAsync(collection, groups ?? new List<SelectionReadOnly>());
}
}
}