Skip to content

Conversation

@DeimerM
Copy link

@DeimerM DeimerM commented Dec 24, 2025

This is a backport from the following commit: openedx@ea63816

If you want to read farther information, you can refer to the following security issue: GHSA-rh64-vc2h-7wfj

We previously fixed this when the CourseLimitedStaffRole was applied to
a course but did not handle the case where the role is applied to a user
for a whole org.  The underlying issue is that the CourseLimitedStaffRole
is a subclass of the CourseStaffRole and much of the system assumes that
subclesses are for giving more access not less access.

To prevent that from happening for the case of the CourseLimitedStaffRole,
when we do CourseStaffRole access checks, we use the strict_role_checking
context manager to ensure that we're not accidentally granting the
limited_staff role too much access.
@DeimerM DeimerM requested a review from a team December 24, 2025 21:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants