Skip to content

Commit 3c637f8

Browse files
mariajgrimaldiBryanttV
authored andcommitted
refactor: address quality issues
1 parent 7af3af9 commit 3c637f8

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
@@ -305,8 +305,7 @@ def migrate_authz_to_legacy_course_roles(
305305
306306
To build each CourseAccessRole entry, the function needs:
307307
- A user: resolved from role assignments in scopes linked to courses.
308-
- A scope: either a CourseOverviewData (course-level) or OrgCourseOverviewGlobData (org-level glob),
309-
filtered by course_id or org_id if provided.
308+
- A scope: a CourseOverviewData or OrgCourseOverviewGlobData instance, optionally filtered by course_id or org_id.
310309
- A role: a role external key that maps to a legacy role in COURSE_ROLE_EQUIVALENCES.
311310
312311
param course_access_role_model: It should be the CourseAccessRole model. This is passed in because the function

0 commit comments

Comments
 (0)