Show Enterprise Logistration for coupon users

This commit is contained in:
Saleem Latif
2017-06-12 14:50:40 +05:00
parent c21b3c8f7a
commit 7914a00915
2 changed files with 2 additions and 1 deletions

View File

@@ -248,7 +248,7 @@ def enterprise_customer_for_request(request, tpa_hint=None):
except EnterpriseCustomer.DoesNotExist:
pass
ec_uuid = request.GET.get('enterprise_customer')
ec_uuid = request.GET.get('enterprise_customer') or request.COOKIES.get(settings.ENTERPRISE_CUSTOMER_COOKIE_NAME)
if not ec and ec_uuid:
try:
ec = EnterpriseCustomer.objects.get(uuid=ec_uuid)