Skip to content

Commit

Permalink
fix: project states create (#1830)
Browse files Browse the repository at this point in the history
  • Loading branch information
pablohashescobar authored Aug 11, 2023
1 parent be86a7d commit e06ee25
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apiserver/plane/api/views/project.py
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ def create(self, request, slug):
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(
project_id=serializer.data["id"],
member_id=serializer.data["project_lead"],
Expand Down

0 comments on commit e06ee25

Please sign in to comment.