diff --git a/system/controllers/register.php b/system/controllers/register.php index 5e76451a..1999f904 100644 --- a/system/controllers/register.php +++ b/system/controllers/register.php @@ -4,9 +4,7 @@ * PHP Mikrotik Billing (https://github.com/hotspotbilling/phpnuxbill/) * by https://t.me/ibnux **/ -if ($_app_stage != 'Live') { - _alert(Lang::T('You do not have permission to access this page in demo mode'), 'danger', "login"); -} + if ($_c['disable_registration'] == 'noreg') { _alert(Lang::T('Registration Disabled'), 'danger', "login"); }