From 1404374fb9a7d3d307a499983c2f19f6bc2cf9d4 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Thu, 23 Mar 2017 00:39:55 -0400 Subject: [PATCH] small logic fix --- src/Core/Services/Implementations/OrganizationService.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Core/Services/Implementations/OrganizationService.cs b/src/Core/Services/Implementations/OrganizationService.cs index 06fdceb5a2..9052411761 100644 --- a/src/Core/Services/Implementations/OrganizationService.cs +++ b/src/Core/Services/Implementations/OrganizationService.cs @@ -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."); }