You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Allow authz-only roles to load Pages & Resources → Live #599
Pages & Resources → Live cannot load for users who only have authz roles. course_live/permissions.pyIsStaffOrInstructor only accepts legacy GlobalStaff, CourseInstructorRole or CourseStaffRole.
Current Behavior
course_live/providers and course_live/course return 403 for every user with authz-only roles, so the Live page does not load.
Expected Behavior
Users with authz roles can view Live settings with read permission, and change them only with the manage permission.
Steps to reproduce
Log in as a user with an authz-only role (no legacy course role).
Open Pages & Resources → Live.
Observe 403 responses from course_live/providers and course_live/course.
Acceptance Criteria
Permission checks in course_live/permissions.py use user_has_course_permission for GET requests.
Course Limited Staff loses access to Live when AuthZ is enabled
With the flag on, IsStaffOrInstructor now checks courses.view_pages_and_resources for reads and courses.manage_pages_and_resources for writes. In role_extensions.yaml, course_limited_staff has neither, only course_admin, course_staff, course_editor (view and manage) and course_auditor (view).
Before this change, Limited Staff could open Live because assigning the AuthZ role also creates the legacy CourseLimitedStaffRole, which inherits from CourseStaffRole, and the old check accepts CourseStaffRole. So on a course with the flag on:
Before
After
Limited Staff GET Live settings
200
403
With the flag off nothing changes, Limited Staff keeps access through the legacy check.
The new behavior follows the schema, but it removes access a role has today. Which one do we want?
Keep it as is: Limited Staff has no access to Pages & Resources, Live included, which is what the schema says.
Give course_limited_staffcourses.view_pages_and_resources (and maybe manage) in the schema, so it keeps its current access to Live. That would also open the other Pages & Resources views that check these permissions, so it's a broader change than Live alone.
I'd go with 1 unless Limited Staff is expected to manage course apps. Happy to follow either way.
What do you think? @BryanttV
Activity
efortish commentedon Nov 19, 2026
Fix is up in openedx/openedx-platform#39401. One behavior change there needs a decision before it merges.
Course Limited Staff loses access to Live when AuthZ is enabled
With the flag on,
IsStaffOrInstructornow checkscourses.view_pages_and_resourcesfor reads andcourses.manage_pages_and_resourcesfor writes. Inrole_extensions.yaml,course_limited_staffhas neither, onlycourse_admin,course_staff,course_editor(view and manage) andcourse_auditor(view).Before this change, Limited Staff could open Live because assigning the AuthZ role also creates the legacy
CourseLimitedStaffRole, which inherits fromCourseStaffRole, and the old check acceptsCourseStaffRole. So on a course with the flag on:GETLive settingsWith the flag off nothing changes, Limited Staff keeps access through the legacy check.
The new behavior follows the schema, but it removes access a role has today. Which one do we want?
course_limited_staffcourses.view_pages_and_resources(and maybemanage) in the schema, so it keeps its current access to Live. That would also open the other Pages & Resources views that check these permissions, so it's a broader change than Live alone.I'd go with 1 unless Limited Staff is expected to manage course apps. Happy to follow either way.
What do you think? @BryanttV