Skip to content

Commit

Permalink
Merge pull request #1119 from AI4Bharat/permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
ishvindersethi22 authored Oct 7, 2024
2 parents f229f8e + df0635e commit 178e53f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/organizations/permissions.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 178e53f

Please sign in to comment.