mirror of
https://github.com/bitwarden/server.git
synced 2025-05-04 11:12:20 -05:00
small logic fix
This commit is contained in:
parent
b7254519f0
commit
1404374fb9
@ -137,7 +137,7 @@ namespace Bit.Core.Services
|
||||
|
||||
var orgUser = await _organizationUserRepository.GetByIdAsync(organizationUserId);
|
||||
if(orgUser == null || orgUser.OrganizationId != organizationId ||
|
||||
orgUser.Status == Enums.OrganizationUserStatusType.Invited)
|
||||
orgUser.Status != Enums.OrganizationUserStatusType.Invited)
|
||||
{
|
||||
throw new BadRequestException("User invalid.");
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user