masquerade.py
10.1 KB
-
Make new masquerading code compatible to existing session data. · 55ace6ba
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.
Sven Marnach committed