Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
E
edx-platform
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
edx-platform
Commits
c39edb65
Commit
c39edb65
authored
Aug 07, 2012
by
kimth
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
StudentModule lookups in queue callback use target user, rather than request.user
parent
501f2ccf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
lms/djangoapps/courseware/module_render.py
+4
-5
No files found.
lms/djangoapps/courseware/module_render.py
View file @
c39edb65
...
...
@@ -252,7 +252,7 @@ def get_shared_instance_module(user, module, student_module_cache):
else
:
return
None
from
datetime
import
datetime
@csrf_exempt
def
xqueue_callback
(
request
,
userid
,
id
,
dispatch
):
'''
...
...
@@ -270,13 +270,12 @@ def xqueue_callback(request, userid, id, dispatch):
user
=
User
.
objects
.
get
(
id
=
userid
)
student_module_cache
=
StudentModuleCache
.
cache_for_descriptor_descendents
(
user
,
modulestore
()
.
get_item
(
id
))
instance
=
get_module
(
request
.
user
,
request
,
id
,
student_module_cache
)
instance_module
=
get_instance_module
(
request
.
user
,
instance
,
student_module_cache
)
instance
=
get_module
(
user
,
request
,
id
,
student_module_cache
)
instance_module
=
get_instance_module
(
user
,
instance
,
student_module_cache
)
if
instance_module
is
None
:
log
.
debug
(
"Couldn't find module '
%
s' for user '
%
s'"
,
id
,
request
.
user
)
id
,
user
)
raise
Http404
oldgrade
=
instance_module
.
grade
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment