Skip to content

Conversation

@feanil
Copy link
Contributor

@feanil feanil commented Dec 16, 2025

Teak backport of 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.
@feanil feanil changed the base branch from master to release/teak December 16, 2025 16:57
@feanil feanil requested review from bmtcril and ormsbee December 16, 2025 18:58
@feanil feanil merged commit bfdbcd5 into release/teak Dec 18, 2025
5 checks passed
@feanil feanil deleted the feanil/teak_limited_staff_fix branch December 18, 2025 15:32
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