From c7b8d977038eb2033a1fb93c1203f92f95fe5691 Mon Sep 17 00:00:00 2001
From: Andreas Gohr <andi@splitbrain.org>
Date: Fri, 27 Nov 2015 10:48:16 +0100
Subject: [PATCH] use constant instead of magic number

---
 inc/pageutils.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/inc/pageutils.php b/inc/pageutils.php
index 2c1f997ca..e5f2d35a4 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);
-- 
GitLab