林轩 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: