From d1c7b6ec50c31bdac17533c13e908fb41c1e1990 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 11 May 2007 22:02:35 +0200 Subject: add sneaky_index option This disables the last patch and adds an option to enable it on demand. darcs-hash:20070511200235-7ad00-a3ea769bc4965710b7fd261d31e2c9f8a3d9d7f5.gz --- inc/search.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'inc/search.php') diff --git a/inc/search.php b/inc/search.php index 3b225ddec..eac70cd05 100644 --- a/inc/search.php +++ b/inc/search.php @@ -142,6 +142,7 @@ function search_qsearch(&$data,$base,$file,$type,$lvl,$opts){ * @author Andreas Gohr */ function search_index(&$data,$base,$file,$type,$lvl,$opts){ + global $conf; $return = true; $item = array(); @@ -156,8 +157,8 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){ $id = pathID($file); - if($type=='d' && auth_quickaclcheck($id.':') < AUTH_READ){ - return false; + if($type=='d' && $conf['sneaky_index'] && auth_quickaclcheck($id.':') < AUTH_READ){ + return false; } //check hidden -- cgit v1.2.3