林轩 1 سال پیش
والد
کامیت
cb3cb3fab6
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  1. 2 2
      apps/PestAnalysis/views.py

+ 2 - 2
apps/PestAnalysis/views.py

@@ -152,8 +152,8 @@ class PestSelectView(GenericAPIView):
 
 
 class RecentMonthPestCount(GenericAPIView):
-    authentication_classes = []
-    permission_classes = []
+    authentication_classes = [MyJWTAuthentication]
+    permission_classes = [ModulePermission]
 
     def get(self, request, *args, **kwargs):
         try: