Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion openedx_authz/api/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,7 +311,7 @@ def _filter_candidate_assignments_by_params(

Args:
assignments: The full assignment list to filter. Each entry has exactly one role
(one policy line = one RoleAssignmentData), as produced by get_role_assignments.
(one policy line), as produced by get_role_assignments.
orgs: Optional list of org identifiers to keep (e.g., ['edX', 'MITx']), matched against scope.org.
scopes: Optional list of scope external keys to keep (e.g., ['lib:DemoX:CSPROB']).
roles: Optional list of role external keys to keep (e.g., ['library_admin', 'instructor']).
Expand Down
5 changes: 1 addition & 4 deletions openedx_authz/rest_api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1366,10 +1366,7 @@ def get(self, request: HttpRequest) -> Response:
serializer.is_valid(raise_exception=True)
query_params = serializer.validated_data

user_role_assignments: list[UserAssignmentData | SuperAdminAssignmentData] = []

# Retrieve superadmin assignments (django staff or superuser users), as they always have access to everything
user_role_assignments += get_superadmin_assignments()
user_role_assignments: list[UserAssignmentData] = []

users_with_assignments = api.get_visible_role_assignments_for_user(
orgs=query_params.get("orgs"),
Expand Down
Loading