Commit b2da6eef by Rocky Duan

provide user_id for xmodules

parent 4b8c3b9b
......@@ -131,6 +131,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
# TODO (vshnayder): fix hardcoded urls (use reverse)
......
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