Skip to content
This repository has been archived by the owner on Nov 4, 2024. It is now read-only.

Commit

Permalink
fix: Enable TrackingMiddleware for Mobile IAP basket (#3977)
Browse files Browse the repository at this point in the history
  • Loading branch information
moeez96 authored May 25, 2023
1 parent 3bae030 commit e987d3d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ecommerce/extensions/iap/api/v1/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
from django.utils.html import escape
from django.utils.translation import ugettext as _
from edx_django_utils import monitoring as monitoring_utils
from edx_rest_framework_extensions.permissions import LoginRedirectIfUnauthenticated
from googleapiclient.discovery import build
from oauth2client.service_account import ServiceAccountCredentials
from oscar.apps.basket.views import * # pylint: disable=wildcard-import, unused-wildcard-import
Expand Down Expand Up @@ -87,7 +88,7 @@ class MobileBasketAddItemsView(BasketLogicMixin, APIView):
"""
View that adds single or multiple products to a mobile user's basket.
"""
permission_classes = (IsAuthenticated,)
permission_classes = (LoginRedirectIfUnauthenticated,)

def get(self, request):
# Send time when this view is called - https://openedx.atlassian.net/browse/REV-984
Expand Down

0 comments on commit e987d3d

Please sign in to comment.