From f497f0d103bcaf85e95c0c8f72eb97f4aba2ffc9 Mon Sep 17 00:00:00 2001 From: alangsto <46360176+alangsto@users.noreply.github.com> Date: Mon, 7 Jun 2021 09:31:59 -0400 Subject: [PATCH] feat: Add Django Setting for viewing exam content (#27863) MST-846. We no longer want proctored exam content to be viewable past the exam's due date. This behavior is now controlled by a django setting, so other instances of open edX can choose to turn it on/off. --- lms/envs/common.py | 2 ++ lms/envs/production.py | 3 +++ 2 files changed, 5 insertions(+) diff --git a/lms/envs/common.py b/lms/envs/common.py index fa04bbe486..f45c3dccc3 100644 --- a/lms/envs/common.py +++ b/lms/envs/common.py @@ -4653,6 +4653,8 @@ PROCTORING_BACKENDS = { 'null': {} } +PROCTORED_EXAM_VIEWABLE_PAST_DUE = False + ############### The SAML private/public key values ################ SOCIAL_AUTH_SAML_SP_PRIVATE_KEY = "" SOCIAL_AUTH_SAML_SP_PUBLIC_CERT = "" diff --git a/lms/envs/production.py b/lms/envs/production.py index 537532a839..86dff145ed 100644 --- a/lms/envs/production.py +++ b/lms/envs/production.py @@ -626,6 +626,9 @@ SESSION_INACTIVITY_TIMEOUT_IN_SECONDS = AUTH_TOKENS.get("SESSION_INACTIVITY_TIME TIME_ZONE_DISPLAYED_FOR_DEADLINES = ENV_TOKENS.get("TIME_ZONE_DISPLAYED_FOR_DEADLINES", TIME_ZONE_DISPLAYED_FOR_DEADLINES) +#### PROCTORED EXAM SETTINGS #### +PROCTORED_EXAM_VIEWABLE_PAST_DUE = ENV_TOKENS.get('PROCTORED_EXAM_VIEWABLE_PAST_DUE', False) + ##### Third-party auth options ################################################ ENABLE_REQUIRE_THIRD_PARTY_AUTH = ENV_TOKENS.get('ENABLE_REQUIRE_THIRD_PARTY_AUTH', False)