+ Allow GET /payment/ for unauthorized users
This commit is contained in:
parent
b103a07046
commit
42edb1ae4e
|
|
@ -176,6 +176,7 @@ class PickupAPI(DisablePermissionsMixin):
|
||||||
|
|
||||||
class PaymentMethodsAPI(generics.GenericAPIView):
|
class PaymentMethodsAPI(generics.GenericAPIView):
|
||||||
serializer_class = PaymentMethodSerializer
|
serializer_class = PaymentMethodSerializer
|
||||||
|
permission_classes = [IsAuthenticated | ReadOnly]
|
||||||
|
|
||||||
def get_queryset(self):
|
def get_queryset(self):
|
||||||
return PaymentMethod.objects.all()
|
return PaymentMethod.objects.all()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user