Browse Source

Forbidden to self-register if allow_registration == false

Julio Montoya 12 years ago
parent
commit
72ba6412c0
1 changed files with 2 additions and 2 deletions
  1. 2 2
      main/auth/inscription.php

+ 2 - 2
main/auth/inscription.php

@@ -246,9 +246,9 @@ if (!CustomPages::enabled()) {
     }
     
     // Forbidden to self-register    
-    /*if (api_get_setting('allow_registration') == 'false') {
+    if (api_get_setting('allow_registration') == 'false') {
         api_not_allowed(true);
-    }*/
+    }
     
     if (api_get_setting('allow_registration') == 'approval') {
         $content .= Display::return_message(get_lang('YourAccountHasToBeApproved'));