Commit 4b00566e by cahrens Committed by Andy Armstrong

Update course access check.

parent c86f2352
...@@ -348,7 +348,7 @@ def xblock_container_handler(request, usage_key_string): ...@@ -348,7 +348,7 @@ def xblock_container_handler(request, usage_key_string):
""" """
usage_key = usage_key_with_run(usage_key_string) usage_key = usage_key_with_run(usage_key_string)
if not has_course_author_access(request.user, usage_key.course_key): if not has_studio_read_access(request.user, usage_key.course_key):
raise PermissionDenied() raise PermissionDenied()
response_format = request.REQUEST.get('format', 'html') response_format = request.REQUEST.get('format', 'html')
......
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