From 3e0635992fbf66593fceb428162d27dc2124c613 Mon Sep 17 00:00:00 2001 From: rabuzarus <> Date: Fri, 29 May 2015 04:05:41 +0200 Subject: [PATCH] change the conditions --- mod/directory.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mod/directory.php b/mod/directory.php index 81f3c52c7c..b13e17627a 100644 --- a/mod/directory.php +++ b/mod/directory.php @@ -29,7 +29,8 @@ function directory_content(&$a) { require_once("mod/proxy.php"); - if((get_config('system','block_public')) && (! local_user()) && (! remote_user()) || (get_config('system','block_local_dir'))) { + if((get_config('system','block_public')) && (! local_user()) && (! remote_user()) || + (get_config('system','block_local_dir')) && (! local_user()) && (! remote_user())) { notice( t('Public access denied.') . EOL); return; }