This commit is contained in:
Ross
2021-04-26 10:57:47 +01:00
parent 3b6e1dbe29
commit a94264eff0
4 changed files with 11 additions and 4 deletions
+1 -2
View File
@@ -920,8 +920,7 @@ class ExamViewSet(viewsets.ModelViewSet):
def get_queryset(self):
"""
This view should return a list of all the purchases
for the currently authenticated user.
This view should return a list exams available to a user.
"""
user = self.request.user
if user.groups.filter(name="rapid_checker").exists():