Skip to content

Allow authz-only roles to load Pages & Resources → Live #599

Open
openedx/openedx-platform
#39401

Description

@BryanttV

Description

Pages & Resources → Live cannot load for users who only have authz roles. course_live/permissions.py IsStaffOrInstructor 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

  1. Log in as a user with an authz-only role (no legacy course role).
  2. Open Pages & Resources → Live.
  3. 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.
  • Write requests require MANAGE_PAGES_AND_RESOURCES.
  • Users with authz-only roles and view permission can load Live; users without manage permission cannot modify it.
  • Legacy staff and instructors keep their current access.
  • Tests are added or updated.

Activity

  1. added
    willow
    on Nov 4, 2026
  2. added theissue type on Nov 4, 2026
  3. moved this to Ready for Development in RBAC AuthZ Boardon Nov 5, 2026
  4. efortish commented on Nov 19, 2026

    @efortish
    Contributor

    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, 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?

    1. Keep it as is: Limited Staff has no access to Pages & Resources, Live included, which is what the schema says.
    2. Give course_limited_staff courses.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

  5. moved this from Ready for Development to In Review in RBAC AuthZ Boardon Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

willow

Type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions