فهرست منبع

Forbidden to self-register if allow_registration == false

Julio Montoya 12 سال پیش
والد
کامیت
72ba6412c0
1فایلهای تغییر یافته به همراه2 افزوده شده و 2 حذف شده
  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'));