cannot register at all when multiple_pages is not allowed
This commit is contained in:
parent
727661d454
commit
102ea901c3
1 changed files with 6 additions and 1 deletions
|
@ -452,7 +452,12 @@ function register_content(&$a) {
|
||||||
|
|
||||||
$block = get_config('system','block_extended_register');
|
$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);
|
notice("Permission denied." . EOL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue