[FIX] GEOFENCING: Geofence setup check api fix
This commit is contained in:
@@ -139,11 +139,12 @@ class GeoFencingEmployeeLocationCheckAPIView(APIView):
|
|||||||
class GeoFencingSetUpPermissionCheck(APIView):
|
class GeoFencingSetUpPermissionCheck(APIView):
|
||||||
permission_classes = [IsAuthenticated]
|
permission_classes = [IsAuthenticated]
|
||||||
|
|
||||||
|
@method_decorator(
|
||||||
|
permission_required("geofencing.view_geofencing", raise_exception=True),
|
||||||
|
name="dispatch",
|
||||||
|
)
|
||||||
def get(self, request):
|
def get(self, request):
|
||||||
geo_fencing = GeoFencingSetupGetPostAPIView()
|
return Response(status=200)
|
||||||
if geo_fencing.get(request).status_code == 200:
|
|
||||||
return Response(status=200)
|
|
||||||
return Response(status=400)
|
|
||||||
|
|
||||||
|
|
||||||
def get_company(request):
|
def get_company(request):
|
||||||
|
|||||||
Reference in New Issue
Block a user