From b54f94e00cd0f1a818dd79fb2ce3bca7117e243e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 11 May 2007 21:21:16 +0200 Subject: hide namespaces from index when no read permissions are available FS#427 Note this wil also hide all namespaces below even if they have more relaxed permissions. darcs-hash:20070511192116-7ad00-90103a756a6f3011cfb60817ecc1906f639ce342.gz --- inc/search.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'inc') diff --git a/inc/search.php b/inc/search.php index d6a2166c5..3b225ddec 100644 --- a/inc/search.php +++ b/inc/search.php @@ -156,6 +156,10 @@ function search_index(&$data,$base,$file,$type,$lvl,$opts){ $id = pathID($file); + if($type=='d' && auth_quickaclcheck($id.':') < AUTH_READ){ + return false; + } + //check hidden if(isHiddenPage($id)){ return false; -- cgit v1.2.3