forked from github/plane
dev: fix project invitation workflow
This commit is contained in:
parent
112c418047
commit
1496af99b7
@ -364,10 +364,8 @@ class InviteProjectEndpoint(BaseAPIView):
|
|||||||
|
|
||||||
# If the user is also part of workspace directly add him to project
|
# If the user is also part of workspace directly add him to project
|
||||||
if WorkspaceMember.objects.filter(
|
if WorkspaceMember.objects.filter(
|
||||||
project_id=project_id,
|
|
||||||
member__email=email,
|
member__email=email,
|
||||||
member__is_bot=False,
|
member__is_bot=False,
|
||||||
member__is_deactivated=False,
|
|
||||||
).exists():
|
).exists():
|
||||||
# Check if user is already a member of project
|
# Check if user is already a member of project
|
||||||
if ProjectMember.objects.filter(
|
if ProjectMember.objects.filter(
|
||||||
|
Loading…
Reference in New Issue
Block a user