Skip to content

Commit d43100b

Browse files
mariajgrimaldiBryanttV
authored andcommitted
refactor: address PR reviews
1 parent ed7f09e commit d43100b

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
@@ -339,8 +339,7 @@ def migrate_authz_to_legacy_course_roles(
339339
role_assignments = [
340340
role_assignment
341341
for role_assignment in role_assignments
342-
if isinstance(role_assignment.scope, CourseOverviewData)
343-
and role_assignment.scope.external_key in course_id_list
342+
if role_assignment.scope.course_id in course_id_list
344343
]
345344

346345
roles_with_errors = []

0 commit comments

Comments
 (0)