aboutsummaryrefslogtreecommitdiffstats
path: root/mod/register.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/register.php')
-rw-r--r--mod/register.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/register.php b/mod/register.php
index 86bfe2066..b52888ef9 100644
--- a/mod/register.php
+++ b/mod/register.php
@@ -355,7 +355,7 @@ function register_content(&$a) {
$block = get_config('system','block_extended_register');
- if((($a->config['register_policy'] == REGISTER_CLOSED) && (! getuid())) || ($block)) {
+ if((($a->config['register_policy'] == REGISTER_CLOSED) && (! local_user())) || ($block)) {
notice("Permission denied." . EOL);
return;
}