mirror of
https://github.com/bitwarden/server.git
synced 2025-02-02 23:41:21 +01: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 ||
|
||||
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
|
||||
@ -257,7 +257,7 @@ namespace Bit.Core.Services
|
||||
var existingOrgs = await _organizationUserRepository.GetManyByUserAsync(user.Id);
|
||||
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;
|
||||
|
Loading…
Reference in New Issue
Block a user