aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
authorfriendica <info@friendica.com>2011-12-09 16:50:13 -0800
committerfriendica <info@friendica.com>2011-12-09 16:50:13 -0800
commit102ea901c3de0b8dec707dc01464bfb79f250df0 (patch)
treeef80adc21f1809f3c3b1b1a2e79b625b40407815 /mod
parent727661d454dc6012b4f00e860748a0b5df4b067f (diff)
downloadvolse-hubzilla-102ea901c3de0b8dec707dc01464bfb79f250df0.tar.gz
volse-hubzilla-102ea901c3de0b8dec707dc01464bfb79f250df0.tar.bz2
volse-hubzilla-102ea901c3de0b8dec707dc01464bfb79f250df0.zip
cannot register at all when multiple_pages is not allowed
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;
}