mirror of
https://github.com/makeplane/plane
synced 2024-06-14 14:31:34 +00:00
fix: add member role and member status in project create response (#1962)
This commit is contained in:
parent
0525e7d6b3
commit
fd8c368c97
@ -287,7 +287,10 @@ class ProjectViewSet(BaseViewSet):
|
|||||||
)
|
)
|
||||||
|
|
||||||
data = serializer.data
|
data = serializer.data
|
||||||
|
# Additional fields of the member
|
||||||
data["sort_order"] = project_member.sort_order
|
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(data, status=status.HTTP_201_CREATED)
|
||||||
return Response(
|
return Response(
|
||||||
serializer.errors,
|
serializer.errors,
|
||||||
|
Loading…
Reference in New Issue
Block a user