cannot register at all when multiple_pages is not allowed

This commit is contained in:
friendica 2011-12-09 16:50:13 -08:00
parent 727661d454
commit 102ea901c3

View file

@ -452,7 +452,12 @@ function register_content(&$a) {
$block = get_config('system','block_extended_register');
if((($a->config['register_policy'] == REGISTER_CLOSED) && (! local_user())) || ($block)) {
if(local_user() && ($block)) {
notice("Permission denied." . EOL);
return;
}
if((! local_user()) && ($a->config['register_policy'] == REGISTER_CLOSED)) {
notice("Permission denied." . EOL);
return;
}