Set Age Limit to Get Full Profile Feature on Open edX
By default Open edX allow to get full profile to user if user is over 13 year. But you can change it with custom age limit. To set it, follow the steps below:
-
Go to Open edX server console.
-
Open and edit LMS configuration (
/edx/app/edxapp/lms.env.json
or/edx/etc/lms.yml
). -
Then find the
PARENTAL_CONSENT_AGE_LIMIT
configuration (add configurationPARENTAL_CONSENT_AGE_LIMIT
if you can’t find it) and set with you custom age limit. See the following codes snippet, im set age limit to 7:... PARENTAL_CONSENT_AGE_LIMIT: 7 ...
-
Restart LMS services.
-
Update translations file because Open edX still to display age limit is 13 year.
In my case default language on my Open edX env was set to Bahasa Indonesia (ID), so im update
/edx/app/edxapp/edx-platform/lms/static/js/i18n/id/djangojs.js
. -
Re-compile translations file.
$ sudo -H -u edxapp bash $ source /edx/app/edxapp/edxapp_env $ cd /edx/app/edxapp/edx-platform $ paver i18n_fastgenerate
-
Restart LMS and memcached service.