From adfb35e50d581369535e42a788231c109cec4f52 Mon Sep 17 00:00:00 2001 From: pablohashescobar Date: Tue, 1 Aug 2023 17:41:22 +0530 Subject: [PATCH] dev: fix sort order filter --- apiserver/plane/api/views/project.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apiserver/plane/api/views/project.py b/apiserver/plane/api/views/project.py index fa11065e5..2f4a30d56 100644 --- a/apiserver/plane/api/views/project.py +++ b/apiserver/plane/api/views/project.py @@ -819,7 +819,7 @@ class ProjectJoinEndpoint(BaseAPIView): smallest_sort_order = ( ProjectMember.objects.filter( - workspace__slug=slug, member=self.member + workspace__slug=slug, member=request.user ) .aggregate(smallest=Min("sort_order")) .get("smallest", 65535)