Skip to content

Commit 50781e6

Browse files
refactor: address PR reviews
1 parent 6ca5db7 commit 50781e6

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
@@ -327,8 +327,7 @@ def migrate_authz_to_legacy_course_roles(
327327
role_assignments = [
328328
role_assignment
329329
for role_assignment in role_assignments
330-
if isinstance(role_assignment.scope, CourseOverviewData)
331-
and role_assignment.scope.external_key in course_id_list
330+
if role_assignment.scope.course_id in course_id_list
332331
]
333332

334333
roles_with_errors = []

0 commit comments

Comments
 (0)