aboutsummaryrefslogtreecommitdiffstats
path: root/mod/directory.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/directory.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/directory.php')
-rw-r--r--mod/directory.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/mod/directory.php b/mod/directory.php
index 13855cff7..9d2a9d19c 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -14,6 +14,11 @@ function directory_aside(&$a) {
require_once('include/contact_widgets.php');
$a->set_widget('find_people',findpeople_widget());
}
+
+ if((get_config('system','block_public')) && (! local_user()) && (! remote_user())) {
+ return;
+ }
+
$a->set_widget('dir_sort_order',dir_sort_links());
}