Skip to content

Commit 28791a6

Browse files
refactor: address PR reviews
1 parent 10b7c53 commit 28791a6

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

openedx_authz/engine/utils.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -337,8 +337,7 @@ def migrate_authz_to_legacy_course_roles(
337337
role_assignments = [
338338
role_assignment
339339
for role_assignment in role_assignments
340-
if isinstance(role_assignment.scope, CourseOverviewData)
341-
and role_assignment.scope.external_key in course_id_list
340+
if role_assignment.scope.course_id in course_id_list
342341
]
343342

344343
roles_with_errors = []

0 commit comments

Comments
 (0)