From ed91fa27281142256ec01336f36bc04c0c49bf4f Mon Sep 17 00:00:00 2001 From: nebula_chen Date: Wed, 8 Apr 2026 15:07:47 +0800 Subject: [PATCH] =?UTF-8?q?fix(eip=5Fsync)=EF=BC=9A=E6=9A=82=E6=97=B6?= =?UTF-8?q?=E5=85=B3=E9=97=ADAKSK=E8=AE=A4=E8=AF=81=EF=BC=8C=E4=BE=BF?= =?UTF-8?q?=E4=BA=8E=E8=81=94=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- backend/plugins/eip_sync/sync/views.py | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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()