diff --git a/apiserver/plane/app/serializers/project.py b/apiserver/plane/app/serializers/project.py index a0c2318e3..1e25445c3 100644 --- a/apiserver/plane/app/serializers/project.py +++ b/apiserver/plane/app/serializers/project.py @@ -179,7 +179,7 @@ class ProjectMemberAdminSerializer(BaseSerializer): class ProjectMemberRoleSerializer(DynamicBaseSerializer): class Meta: model = ProjectMember - fields = ("id", "role", "member", "project") + fields = ("id", "role", "member", "project", "is_active") class ProjectMemberInviteSerializer(BaseSerializer): diff --git a/apiserver/plane/app/views/project/member.py b/apiserver/plane/app/views/project/member.py index 187dfc8d0..68d03c2a9 100644 --- a/apiserver/plane/app/views/project/member.py +++ b/apiserver/plane/app/views/project/member.py @@ -157,7 +157,7 @@ class ProjectMemberViewSet(BaseViewSet): ).select_related("project", "member", "workspace") serializer = ProjectMemberRoleSerializer( - project_members, fields=("id", "member", "role"), many=True + project_members, fields=("id", "member", "role", "is_active"), many=True ) return Response(serializer.data, status=status.HTTP_200_OK) diff --git a/apiserver/plane/app/views/workspace/member.py b/apiserver/plane/app/views/workspace/member.py index 5afe37144..0797aa74f 100644 --- a/apiserver/plane/app/views/workspace/member.py +++ b/apiserver/plane/app/views/workspace/member.py @@ -90,13 +90,13 @@ class WorkSpaceMemberViewSet(BaseViewSet): if workspace_member.role > 10: serializer = WorkspaceMemberAdminSerializer( workspace_members, - fields=("id", "member", "role"), + fields=("id", "member", "role", "is_active"), many=True, ) else: serializer = WorkSpaceMemberSerializer( workspace_members, - fields=("id", "member", "role"), + fields=("id", "member", "role", "is_active"), many=True, ) return Response(serializer.data, status=status.HTTP_200_OK)