aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/register.php7
1 files changed, 6 insertions, 1 deletions
diff --git a/mod/register.php b/mod/register.php
index 6ebe35dbf..0115ec0d5 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -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;
}