mirror of
https://github.com/bitwarden/server.git
synced 2025-04-16 02:28:13 -05:00
use one instead of 1
This commit is contained in:
parent
b4d588d981
commit
52ccef85c6
@ -93,7 +93,7 @@ namespace Bit.Core.Services
|
|||||||
if(ownerExistingOrgs.Any(ou => ou.Type == Enums.OrganizationUserType.Owner ||
|
if(ownerExistingOrgs.Any(ou => ou.Type == Enums.OrganizationUserType.Owner ||
|
||||||
ou.Type == Enums.OrganizationUserType.Admin))
|
ou.Type == Enums.OrganizationUserType.Admin))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("You can only be an admin of 1 free organization.");
|
throw new BadRequestException("You can only be an admin of one free organization.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@ -257,7 +257,7 @@ namespace Bit.Core.Services
|
|||||||
var existingOrgs = await _organizationUserRepository.GetManyByUserAsync(user.Id);
|
var existingOrgs = await _organizationUserRepository.GetManyByUserAsync(user.Id);
|
||||||
if(existingOrgs.Any(ou => ou.Type == Enums.OrganizationUserType.Owner || ou.Type == Enums.OrganizationUserType.Admin))
|
if(existingOrgs.Any(ou => ou.Type == Enums.OrganizationUserType.Owner || ou.Type == Enums.OrganizationUserType.Admin))
|
||||||
{
|
{
|
||||||
throw new BadRequestException("You can only be an admin of 1 free organization.");
|
throw new BadRequestException("You can only be an admin of one free organization.");
|
||||||
}
|
}
|
||||||
|
|
||||||
var tokenValidationFailed = true;
|
var tokenValidationFailed = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user