Skip to content

Commit

Permalink
course api error fixed
Browse files Browse the repository at this point in the history
  • Loading branch information
ReinhardDP committed Mar 11, 2024
1 parent 3aa7015 commit 8bd347b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/pigeonhole/apps/courses/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def destroy(self, request, *args, **kwargs):
return Response(status=status.HTTP_204_NO_CONTENT)

def list(self, request, *args, **kwargs):
if request.user.is_admin or request.user.is_superuser
if request.user.is_admin or request.user.is_superuser:
serializer = CourseSerializer(self.queryset, many=True)
return Response(serializer.data, status=status.HTTP_200_OK)
if request.user.is_teacher or request.user.is_student:
Expand Down

0 comments on commit 8bd347b

Please sign in to comment.