diff --git a/inc/pageutils.php b/inc/pageutils.php index 2c1f997ca23f8657a8d32a8dd757d3dd870bee60..e5f2d35a4975d84af0017d00fb9a6050e675be6b 100644 --- a/inc/pageutils.php +++ b/inc/pageutils.php @@ -757,7 +757,7 @@ function page_findnearest($page, $ignoreacl = false){ do { $ns = getNS($ns); $pageid = cleanID("$ns:$page"); - if(page_exists($pageid) && ($ignoreacl || auth_quickaclcheck($pageid) > 0)){ + if(page_exists($pageid) && ($ignoreacl || auth_quickaclcheck($pageid) >= AUTH_READ)){ return $pageid; } } while($ns);