Skip to content
Snippets Groups Projects
Commit f9972381 authored by Matt Drayer's avatar Matt Drayer
Browse files

Merge pull request #12523 from edx/asadiqbal08/WL-479

WL-479 Enable Bulk purchase for anonymous user
parents b3462e5b 63a30a31
No related merge requests found
......@@ -46,9 +46,14 @@ class EcommerceService(object):
def is_enabled(self, user):
"""
Determines the availability of the Ecommerce service based on user activation and service configuration.
Determines the availability of the EcommerceService based on user activation and service configuration.
Note: If the user is anonymous we bypass the user activation gate and only look at the service config.
Returns:
Boolean
"""
return user.is_active and self.config.checkout_on_ecommerce_service
allow_user = user.is_active or user.is_anonymous()
return allow_user and self.config.checkout_on_ecommerce_service
def payment_page_url(self):
""" Return the URL for the checkout page.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment