aboutsummaryrefslogtreecommitdiffstats
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/acl.php6
-rw-r--r--mod/directory.php6
2 files changed, 11 insertions, 1 deletions
diff --git a/mod/acl.php b/mod/acl.php
index b886b7e58..bd19c4bb7 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;
+ }
+
$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
+}
diff --git a/mod/directory.php b/mod/directory.php
index 657ecd8f9..1f22e9bf8 100644
--- a/mod/directory.php
+++ b/mod/directory.php
@@ -14,7 +14,13 @@ 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('safe_search',dir_safe_mode());
+
$a->set_widget('dir_sort_order',dir_sort_links());
}