From 6f3ef7c9c9535e62456b34311c2ba09aab080c9d Mon Sep 17 00:00:00 2001 From: Aamish Baloch Date: Thu, 3 Aug 2017 13:07:21 +0500 Subject: [PATCH] YONK-725: PARENTAL_CONSENT_AGE_LIMIT set to be configurable --- cms/envs/aws.py | 9 +++++++++ lms/envs/aws.py | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/cms/envs/aws.py b/cms/envs/aws.py index df5d14c225..4484aca24d 100644 --- a/cms/envs/aws.py +++ b/cms/envs/aws.py @@ -513,3 +513,12 @@ HELP_TOKENS_BOOKS = ENV_TOKENS.get('HELP_TOKENS_BOOKS', HELP_TOKENS_BOOKS) ############## Settings for CourseGraph ############################ COURSEGRAPH_JOB_QUEUE = ENV_TOKENS.get('COURSEGRAPH_JOB_QUEUE', LOW_PRIORITY_QUEUE) + +########################## Parental controls config ####################### + +# The age at which a learner no longer requires parental consent, or None +# if parental consent is never required. +PARENTAL_CONSENT_AGE_LIMIT = ENV_TOKENS.get( + 'PARENTAL_CONSENT_AGE_LIMIT', + PARENTAL_CONSENT_AGE_LIMIT +) diff --git a/lms/envs/aws.py b/lms/envs/aws.py index ee72981fea..69bbf05107 100644 --- a/lms/envs/aws.py +++ b/lms/envs/aws.py @@ -1015,3 +1015,12 @@ ICP_LICENSE = ENV_TOKENS.get('ICP_LICENSE', None) ############## Settings for CourseGraph ############################ COURSEGRAPH_JOB_QUEUE = ENV_TOKENS.get('COURSEGRAPH_JOB_QUEUE', LOW_PRIORITY_QUEUE) + +########################## Parental controls config ####################### + +# The age at which a learner no longer requires parental consent, or None +# if parental consent is never required. +PARENTAL_CONSENT_AGE_LIMIT = ENV_TOKENS.get( + 'PARENTAL_CONSENT_AGE_LIMIT', + PARENTAL_CONSENT_AGE_LIMIT +)