Merge pull request #25734 from edx/ammar/ent-3670-get-learners-enterprise-info-from-db

try to get learner's enterprise information from DB if there is no enterprise customer associated with sso provider id
This commit is contained in:
Muhammad Ammar
2020-12-02 21:02:38 +05:00
committed by GitHub
2 changed files with 13 additions and 4 deletions

View File

@@ -486,7 +486,7 @@ def enterprise_customer_uuid_for_request(request):
else:
enterprise_customer_uuid = _customer_uuid_from_query_param_cookies_or_session(request)
if enterprise_customer_uuid is _CACHE_MISS:
if enterprise_customer_uuid is _CACHE_MISS or enterprise_customer_uuid is None:
if not request.user.is_authenticated:
return None