Updating the require_course_staff decorator to work with json handler.

TNL-900