diff --git a/src/Core/Services/Implementations/OrganizationService.cs b/src/Core/Services/Implementations/OrganizationService.cs index 3d9f1da1f..d9551811b 100644 --- a/src/Core/Services/Implementations/OrganizationService.cs +++ b/src/Core/Services/Implementations/OrganizationService.cs @@ -1376,6 +1376,11 @@ public class OrganizationService : IOrganizationService private async Task AcceptUserAsync(OrganizationUser orgUser, User user, IUserService userService) { + if (orgUser.Status == OrganizationUserStatusType.Revoked) + { + throw new BadRequestException("Your organization access has been revoked."); + } + if (orgUser.Status != OrganizationUserStatusType.Invited) { throw new BadRequestException("Already accepted.");