summaryrefslogtreecommitdiff
path: root/inc/search.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2007-05-11 21:21:16 +0200
committerAndreas Gohr <andi@splitbrain.org>2007-05-11 21:21:16 +0200
commitb54f94e00cd0f1a818dd79fb2ce3bca7117e243e (patch)
tree02683797a98d51d4b94fa450533f7d5a71531ce6 /inc/search.php
parentb7ab6f2f26a5380cb3d0aaeb64116aa79b9dcebe (diff)
downloadrpg-b54f94e00cd0f1a818dd79fb2ce3bca7117e243e.tar.gz
rpg-b54f94e00cd0f1a818dd79fb2ce3bca7117e243e.tar.bz2
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
Diffstat (limited to 'inc/search.php')
-rw-r--r--inc/search.php4
1 files changed, 4 insertions, 0 deletions
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;