Skip to content

Commit

Permalink
remove old auth from api tenders
Browse files Browse the repository at this point in the history
  • Loading branch information
madjid-asa committed Nov 20, 2024
1 parent 38b9d3e commit 9365d8a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lemarche/api/tenders/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
from django.utils import timezone
from drf_spectacular.utils import OpenApiParameter, extend_schema
from rest_framework import mixins, viewsets
from rest_framework.permissions import IsAuthenticated

from lemarche.api.tenders.serializers import TenderSerializer
from lemarche.api.utils import BasicChoiceSerializer, check_user_token
from lemarche.api.utils import BasicChoiceSerializer
from lemarche.tenders import constants as tender_constants
from lemarche.tenders.models import Tender
from lemarche.users import constants as user_constants
Expand All @@ -16,6 +17,7 @@


class TenderViewSet(mixins.CreateModelMixin, viewsets.GenericViewSet):
permission_classes = [IsAuthenticated]
serializer_class = TenderSerializer

@extend_schema(
Expand All @@ -26,8 +28,6 @@ class TenderViewSet(mixins.CreateModelMixin, viewsets.GenericViewSet):
],
)
def create(self, request, *args, **kwargs):
token = request.GET.get("token", None)
check_user_token(token)
return super().create(request, args, kwargs)

def perform_create(self, serializer: TenderSerializer):
Expand Down

0 comments on commit 9365d8a

Please sign in to comment.