feat!: Enable the allowlist for all courses (#27468)

MICROBA-1013
This commit is contained in:
Christie Rice
2021-05-03 11:15:04 -04:00
committed by GitHub
parent 6c62dfc748
commit 912f2fa431
10 changed files with 20 additions and 95 deletions

View File

@@ -373,8 +373,12 @@ def is_using_certificate_allowlist_and_is_on_allowlist(user, course_key):
def is_using_certificate_allowlist(course_key):
"""
Check if the course run is using the allowlist, aka v2 of certificate whitelisting
Currently this returns True for all course runs, as we're enabling the allowlist for everyone.
If all goes well, we'll come back and remove this method and the flag entirely in MICROBA-1073.
"""
return CERTIFICATES_USE_ALLOWLIST.is_enabled(course_key)
return True
# return CERTIFICATES_USE_ALLOWLIST.is_enabled(course_key)
def is_using_v2_course_certificates(course_key):