diff options
-rw-r--r-- | inc/auth.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/inc/auth.php b/inc/auth.php index 0b40b6995..0433a327c 100644 --- a/inc/auth.php +++ b/inc/auth.php @@ -368,7 +368,10 @@ function register(){ global $conf; if(!$_POST['save']) return false; -// if(!$conf['openregister']) return false; + + //no open register? -> only admin allowed! + if(!$conf['openregister'] && + auth_quickaclcheck('') != AUTH_ADMIN ) return false; //clean username $_POST['login'] = preg_replace('/.*:/','',$_POST['login']); |