forked from github/plane
fix: project states create (#1830)
This commit is contained in:
parent
be86a7d38e
commit
e06ee25800
@ -187,7 +187,7 @@ class ProjectViewSet(BaseViewSet):
|
|||||||
project_id=serializer.data["id"], member=request.user, role=20
|
project_id=serializer.data["id"], member=request.user, role=20
|
||||||
)
|
)
|
||||||
|
|
||||||
if serializer.data["project_lead"] is not None:
|
if serializer.data["project_lead"] is not None and str(serializer.data["project_lead"]) != str(request.user.id):
|
||||||
ProjectMember.objects.create(
|
ProjectMember.objects.create(
|
||||||
project_id=serializer.data["id"],
|
project_id=serializer.data["id"],
|
||||||
member_id=serializer.data["project_lead"],
|
member_id=serializer.data["project_lead"],
|
||||||
|
Loading…
Reference in New Issue
Block a user