From 4e6d04af7755289db2c8f720bf4c41a725aff169 Mon Sep 17 00:00:00 2001 From: Daniel Barreto Date: Fri, 24 Oct 2014 17:15:59 -0500 Subject: [PATCH] Improve documentation - refs BT#8783 --- main/auth/inscription.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/main/auth/inscription.php b/main/auth/inscription.php index ff0235f697..1fc6f85d6d 100755 --- a/main/auth/inscription.php +++ b/main/auth/inscription.php @@ -19,6 +19,8 @@ require_once api_get_path(LIBRARY_PATH).'mail.lib.inc.php'; $htmlHeadXtra[] = api_get_password_checker_js('#username', '#pass1'); +// User is not allowed if Terms and Conditions are disabled and +// registration is disabled too. $isNotAllowedHere = api_get_setting('allow_terms_conditions') === 'false' && api_get_setting('allow_registration') === 'false';