We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29d4f22 commit cf6f212Copy full SHA for cf6f212
openedx_authz/engine/utils.py
@@ -348,9 +348,8 @@ def migrate_authz_to_legacy_course_roles(
348
"role": COURSE_ROLE_EQUIVALENCES[role_external_key],
349
}
350
351
- # Here we prioritize course_id over org for scope since course-level scope is more specific
352
- # and also both are not needed to create a valid CourseAccessRole entry
353
if isinstance(role_assignment.scope, CourseOverviewData):
+ course_access_role_kwargs["org"] = role_assignment.scope.org
354
course_access_role_kwargs["course_id"] = scope_external_key
355
elif isinstance(role_assignment.scope, OrgCourseOverviewGlobData):
356
course_access_role_kwargs["org"] = role_assignment.scope.org
0 commit comments