diff --git a/backend/plugins/eip_sync/sync/views.py b/backend/plugins/eip_sync/sync/views.py index 4e26f56..9e35f7d 100644 --- a/backend/plugins/eip_sync/sync/views.py +++ b/backend/plugins/eip_sync/sync/views.py @@ -1,4 +1,5 @@ from rest_framework.permissions import IsAuthenticated +from rest_framework.permissions import AllowAny from rest_framework.response import Response from rest_framework.views import APIView @@ -11,10 +12,14 @@ class MiscMaterialSyncView(APIView): """ EIP -> PIS: miscellaneous procurement material master (杂采料号). Authenticated via dvadmin-ak-sk (X-NSF-* signature headers). + + POST ``/api/sync/material/misc/`` """ - authentication_classes = [AkSkAuthentication] - permission_classes = [IsAuthenticated] + # authentication_classes = [AkSkAuthentication] + # permission_classes = [IsAuthenticated] + authentication_classes = [] + permission_classes = [AllowAny] def post(self, request, *args, **kwargs): manager = SyncManager()