+ Allow GET /payment/ for unauthorized users

This commit is contained in:
Phil Zhitnikov 2023-07-13 01:26:32 +04:00
parent b103a07046
commit 42edb1ae4e

View File

@ -176,6 +176,7 @@ class PickupAPI(DisablePermissionsMixin):
class PaymentMethodsAPI(generics.GenericAPIView):
serializer_class = PaymentMethodSerializer
permission_classes = [IsAuthenticated | ReadOnly]
def get_queryset(self):
return PaymentMethod.objects.all()