mirror of
https://github.com/bitwarden/server.git
synced 2025-07-07 10:55:43 -05:00
< , not <=
This commit is contained in:
@ -614,7 +614,7 @@ namespace Bit.Core.Services
|
|||||||
if(org != null && org.MaxCollections.HasValue)
|
if(org != null && org.MaxCollections.HasValue)
|
||||||
{
|
{
|
||||||
var collectionCount = await _collectionRepository.GetCountByOrganizationIdAsync(org.Id);
|
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 " +
|
throw new BadRequestException("This organization can only have a maximum of " +
|
||||||
$"{org.MaxCollections.Value} collections.");
|
$"{org.MaxCollections.Value} collections.");
|
||||||
|
Reference in New Issue
Block a user