Commit ba597331 by Brittney Exline

ENT-496 Set consent_granted to None when calling enterprise-course-enrollment endpoint

Since we have a separate call to grant consent, we shouldn't try to set that value on
the enterprise course enrollment anymore, because it causes errors.
parent 92d9327b
...@@ -603,7 +603,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn): ...@@ -603,7 +603,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
# We received an explicitly-linked EnterpriseCustomer for the enrollment # We received an explicitly-linked EnterpriseCustomer for the enrollment
if explicit_linked_enterprise is not None: if explicit_linked_enterprise is not None:
try: try:
enterprise_api_client.post_enterprise_course_enrollment(username, unicode(course_id), True) enterprise_api_client.post_enterprise_course_enrollment(username, unicode(course_id), None)
except EnterpriseApiException as error: except EnterpriseApiException as error:
log.exception("An unexpected error occurred while creating the new EnterpriseCourseEnrollment " log.exception("An unexpected error occurred while creating the new EnterpriseCourseEnrollment "
"for user [%s] in course run [%s]", username, course_id) "for user [%s] in course run [%s]", username, course_id)
......
...@@ -48,7 +48,7 @@ edx-lint==0.4.3 ...@@ -48,7 +48,7 @@ edx-lint==0.4.3
astroid==1.3.8 astroid==1.3.8
edx-django-oauth2-provider==1.1.4 edx-django-oauth2-provider==1.1.4
edx-django-sites-extensions==2.3.0 edx-django-sites-extensions==2.3.0
edx-enterprise==0.42.0 edx-enterprise==0.43.1
edx-oauth2-provider==1.2.0 edx-oauth2-provider==1.2.0
edx-opaque-keys==0.4.0 edx-opaque-keys==0.4.0
edx-organizations==0.4.6 edx-organizations==0.4.6
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment