def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. Course and Global staff can view both timed and proctored exam allowances. """ result_set = get_allowances_for_course(course_id=course_id) return Response(result_set)
def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. """ result_set = get_allowances_for_course( course_id=course_id ) return Response(result_set)
def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. """ # course staff only views attempts of timed exams. edx staff can view both timed and proctored attempts. time_exams_only = not request.user.is_staff result_set = get_allowances_for_course(course_id=course_id, timed_exams_only=time_exams_only) return Response(result_set)
def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. Course and Global staff can view both timed and proctored exam allowances. """ result_set = get_allowances_for_course( course_id=course_id ) return Response(result_set)
def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. """ # course staff only views attempts of timed exams. edx staff can view both timed and proctored attempts. time_exams_only = not request.user.is_staff result_set = get_allowances_for_course( course_id=course_id, timed_exams_only=time_exams_only) return Response(result_set)
def get(self, request, course_id): # pylint: disable=unused-argument """ HTTP GET handler. Get all allowances for a course. """ result_set = get_allowances_for_course(course_id=course_id) return Response(result_set)