Skip to content

Commit bd92fbb

Browse files
KraljSamomatijapretnar
authored andcommitted
added permission check to view
1 parent 2c8c13e commit bd92fbb

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

web/tomo_statistics/views.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def user_problem_solution_through_time(request, student_pk, part_pk):
107107
@login_required
108108
def compare_solutions(request, course_pk):
109109
course = get_object_or_404(Course, pk=course_pk)
110+
verify(request.user.can_view_course_statistics(course))
110111
problem_set_pk = request.POST.get("problemSetSelect")
111112
first_student_pk = request.POST.get("firstStudentSelect")
112113
second_student_pk = request.POST.get("secondStudentSelect")

0 commit comments

Comments
 (0)