From dc191a72628377648f78f656d7f3541db8cb945a Mon Sep 17 00:00:00 2001 From: Horilla Date: Wed, 28 May 2025 11:29:17 +0530 Subject: [PATCH] [UPDT] GEOFENCING: get method of setup feature of geofencing --- geofencing/views.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/geofencing/views.py b/geofencing/views.py index eed72364f..39f703d44 100644 --- a/geofencing/views.py +++ b/geofencing/views.py @@ -26,11 +26,8 @@ class GeoFencingSetupGetPostAPIView(APIView): name="dispatch", ) def get(self, request): - if request.user.is_superuser: - location = GeoFencing.objects.all() - else: - company = request.user.employee_get.get_company() - location = company.geo_fencing.all() + company = request.user.employee_get.get_company() + location = company.geo_fencing.all() paginator = PageNumberPagination() page = paginator.paginate_queryset(location, request) serializer = GeoFencingSetupSerializer(page, many=True)