We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b882525 commit 6a73b4dCopy full SHA for 6a73b4d
1 file changed
openedx_authz/rest_api/v1/views.py
@@ -111,13 +111,7 @@ def post(self, request: HttpRequest) -> Response:
111
action = perm["action"]
112
scope = perm["scope"]
113
allowed = api.is_user_allowed(username, action, scope)
114
- response_data.append(
115
- {
116
- "action": action,
117
- "scope": scope,
118
- "allowed": allowed,
119
- }
120
- )
+ response_data.append({"action": action, "scope": scope, "allowed": allowed})
121
except ValueError as e:
122
logger.error(f"Error validating permission for user {username}: {e}")
123
return Response(data={"message": "Invalid scope format"}, status=status.HTTP_400_BAD_REQUEST)
0 commit comments