cannot register at all when multiple_pages is not allowed
This commit is contained in:
parent
727661d454
commit
102ea901c3
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue