Commit 856156a1 by Rocky Duan

provide user_id for xmodules

parent a06cc229
......@@ -208,6 +208,7 @@ def get_module(user, request, location, student_module_cache, position=None):
shared_module = None
instance_state = instance_module.state if instance_module is not None else None
instance_state = json.dumps(dict(json.loads(instance_state).items() + [("user_id", user.id)]))
shared_state = shared_module.state if shared_module is not None else None
# Setup system context for module instance
......
Markdown is supported
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