1
0
mirror of https://github.com/bitwarden/server.git synced 2024-11-25 12:45:18 +01:00

< , not <=

This commit is contained in:
Kyle Spearrin 2019-02-14 15:26:44 -05:00
parent 48343a519b
commit 558cf87e17

View File

@ -614,7 +614,7 @@ namespace Bit.Core.Services
if(org != null && org.MaxCollections.HasValue)
{
var collectionCount = await _collectionRepository.GetCountByOrganizationIdAsync(org.Id);
if(org.MaxCollections.Value <= (collectionCount + collections.Count))
if(org.MaxCollections.Value < (collectionCount + collections.Count))
{
throw new BadRequestException("This organization can only have a maximum of " +
$"{org.MaxCollections.Value} collections.");