aboutsummaryrefslogtreecommitdiffstats
path: root/mod/acl.php
diff options
context:
space:
mode:
authormarijus <mario@localhost.localdomain>2013-11-09 17:56:19 +0100
committermarijus <mario@localhost.localdomain>2013-11-09 17:56:19 +0100
commit3fbf78a859cef17244e82d27ea00fdd22041b4a8 (patch)
tree17bcb87c639144a2c18178d0341cd0b116a67a3c /mod/acl.php
parentb54858d35fb20c9fac798e9e73ce057fd63de747 (diff)
downloadvolse-hubzilla-3fbf78a859cef17244e82d27ea00fdd22041b4a8.tar.gz
volse-hubzilla-3fbf78a859cef17244e82d27ea00fdd22041b4a8.tar.bz2
volse-hubzilla-3fbf78a859cef17244e82d27ea00fdd22041b4a8.zip
fix directory leaking to ppl which aint got zot in searchbar-autocomplete if block_public is enabled
Diffstat (limited to 'mod/acl.php')
-rw-r--r--mod/acl.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php
index b886b7e58..0ce179ae0 100644
--- a/mod/acl.php
+++ b/mod/acl.php
@@ -228,6 +228,10 @@ function navbar_complete(&$a) {
// logger('navbar_complete');
+ if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+ return login();
+ }
+
$dirmode = intval(get_config('system','directory_mode'));
$search = ((x($_REQUEST,'query')) ? htmlentities($_REQUEST['query'],ENT_COMPAT,'UTF-8',false) : '');
if(! $search || mb_strlen($search) < 2)
@@ -278,4 +282,4 @@ function navbar_complete(&$a) {
}
}
return array();
-} \ No newline at end of file
+}