Explorar o código

Forbidden to self-register if allow_registration == false

Julio Montoya %!s(int64=12) %!d(string=hai) anos
pai
achega
72ba6412c0
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  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'));