diff --git a/stude/study_groups/views.py b/stude/study_groups/views.py index 0f308d8..7523373 100644 --- a/stude/study_groups/views.py +++ b/stude/study_groups/views.py @@ -21,11 +21,6 @@ class StudyGroupListView(generics.ListAPIView): def get_queryset(self): user = self.request.user - if not user.is_student: - raise PermissionDenied( - "You must be a student to view study groups" - ) - if not user.is_student: raise PermissionDenied( "You must be a student to view study groups" @@ -57,7 +52,7 @@ class StudyGroupListView(generics.ListAPIView): group_radius = max(group_radius, 15) # Annotate the group with the radius group.radius = group_radius - + print('test', studygroups) return studygroups @@ -72,9 +67,6 @@ class StudyGroupListNearView(generics.ListAPIView): user_location = fromstr( user_status.location, srid=4326) - if user_status.active is False: - raise exceptions.ValidationError("Student Status is not active") - if not user.is_student: raise PermissionDenied( "You must be a student to view study groups"