Skip to content
Snippets Groups Projects
Unverified Commit 1f392bdc authored by Kyle McCormick's avatar Kyle McCormick Committed by GitHub
Browse files

fix: render_xblock was denying access to staff masquerading as learners (#27017)

The render_xblock view, which powers the Learning
MFE (among other things) returned a 404 when un-
enrolled course staff users tried to load it while
masquerading as learners. This was because we
checked course access after enabling the
masquerading context, which triggered a redirect-
to-enrollment exception.

The fix is simply to enable the masquerading
context after checking course access.
Content-level behavior and access is still
calculated within the masquerading context,
as intended.

TNL-7989
parent c79a6401
Branches
Tags
No related merge requests found
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment