The new masquerading code introduced in PR #8775 adds a new attribute to CourseMasquerade objects stored in the user's session. When users who have active masquerading configuration access instances with the new code, and AttributeError occurs when trying to access the attribute user_name. This fix ensures that CourseMasquerade objects receive all required attributes when they are unpickled from the session.
LMS (Learning Management System) -------------------------------- This directory contains code relating to the student portal for edX.