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

fix: Enable TrackingMiddleware for Mobile IAP basket api call #3977

Merged
merged 1 commit into from
May 25, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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