* Allow PoizonAPI for authorized users only

This commit is contained in:
Phil Zhitnikov 2023-11-03 00:39:53 +04:00
parent 28b0adffc3
commit ca478a7e15

View File

@ -368,7 +368,6 @@ class CDEKAPI(viewsets.GenericViewSet):
class PoizonAPI(viewsets.GenericViewSet): class PoizonAPI(viewsets.GenericViewSet):
client = PoizonClient(settings.POIZON_TOKEN) client = PoizonClient(settings.POIZON_TOKEN)
permission_classes = [permissions.AllowAny]
@action(url_path='good', detail=False, methods=['post']) @action(url_path='good', detail=False, methods=['post'])
def get_good_info(self, request, *args, **kwargs): def get_good_info(self, request, *args, **kwargs):