From fd8c368c97907c44bfe52c96a22b9c1cf993f8e9 Mon Sep 17 00:00:00 2001 From: Nikhil <118773738+pablohashescobar@users.noreply.github.com> Date: Fri, 25 Aug 2023 15:16:15 +0530 Subject: [PATCH] fix: add member role and member status in project create response (#1962) --- apiserver/plane/api/views/project.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/apiserver/plane/api/views/project.py b/apiserver/plane/api/views/project.py index a693d535b..3e5ca1c4b 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -287,7 +287,10 @@ class ProjectViewSet(BaseViewSet): ) data = serializer.data + # Additional fields of the member data["sort_order"] = project_member.sort_order + data["member_role"] = project_member.role + data["is_member"] = True return Response(data, status=status.HTTP_201_CREATED) return Response( serializer.errors,