From 1496af99b7920b316f0c4a114e7ffcec778b5ab4 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Thu, 9 Nov 2023 18:31:14 +0530 Subject: [PATCH] dev: fix project invitation workflow --- apiserver/plane/api/views/project.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/apiserver/plane/api/views/project.py b/apiserver/plane/api/views/project.py index e9a353f79..49ed78d4d 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -364,10 +364,8 @@ class InviteProjectEndpoint(BaseAPIView): # If the user is also part of workspace directly add him to project if WorkspaceMember.objects.filter( - project_id=project_id, member__email=email, member__is_bot=False, - member__is_deactivated=False, ).exists(): # Check if user is already a member of project if ProjectMember.objects.filter(