Skip to content

Commit

Permalink
Revert "take 2"
Browse files Browse the repository at this point in the history
This reverts commit c79b0a5.
  • Loading branch information
Eric Fischer committed Jun 20, 2016
1 parent c79b0a5 commit a23631d
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions edx_proctoring/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -1844,9 +1844,8 @@ def get_student_view(user_id, course_id, content_id,

if sub_view_func:
ret_value = sub_view_func(exam, context, exam_id, user_id, course_id)
if ret_value:
return {
'masquerade_hidden': context.get('staff_masquerade', False),
'html': ret_value,
}
return None
if ret_value and context.get('staff_masquerade', None):
return 'masquerade_hidden'
return ret_value
else:
return None

0 comments on commit a23631d

Please sign in to comment.