From 43db1ff5e8fbe6133eec4ae2f619e0c2490cb007 Mon Sep 17 00:00:00 2001 From: Kunal Tiwary Date: Mon, 7 Oct 2024 11:39:43 +0000 Subject: [PATCH] added minor fix --- backend/organizations/permissions.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/organizations/permissions.py b/backend/organizations/permissions.py index f0b1d11cd..899fbaf32 100644 --- a/backend/organizations/permissions.py +++ b/backend/organizations/permissions.py @@ -11,10 +11,10 @@ def get(self, request, *args, **kwargs): project_permissions = org.permission_json["PROJECT_PERMISSIONS"] if ( "fetch_all" in request.query_params - and request.query_params["fetch_all"] == True + and request.query_params["fetch_all"] == "True" ): return Response( - {"permission": list(project_permissions)}, status=status.HTTP_200_OK + {"permission": project_permissions}, status=status.HTTP_200_OK ) permission_name = request.query_params.get("permission_name") if permission_name is None: