1
0
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:
Kyle Spearrin 2017-04-07 14:14:48 -04:00
parent b4d588d981
commit 52ccef85c6

View File

@ -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;