dev: fix project invitation workflow

This commit is contained in:
pablohashescobar 2023-11-09 18:31:14 +05:30
parent 112c418047
commit 1496af99b7

View File

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