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.
This commit is contained in:
@@ -603,7 +603,7 @@ class EnrollmentListView(APIView, ApiKeyPermissionMixIn):
|
||||
# We received an explicitly-linked EnterpriseCustomer for the enrollment
|
||||
if explicit_linked_enterprise is not None:
|
||||
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:
|
||||
log.exception("An unexpected error occurred while creating the new EnterpriseCourseEnrollment "
|
||||
"for user [%s] in course run [%s]", username, course_id)
|
||||
|
||||
@@ -48,7 +48,7 @@ edx-lint==0.4.3
|
||||
astroid==1.3.8
|
||||
edx-django-oauth2-provider==1.1.4
|
||||
edx-django-sites-extensions==2.3.0
|
||||
edx-enterprise==0.42.0
|
||||
edx-enterprise==0.43.1
|
||||
edx-oauth2-provider==1.2.0
|
||||
edx-opaque-keys==0.4.0
|
||||
edx-organizations==0.4.6
|
||||
|
||||
Reference in New Issue
Block a user