Skip to content
Snippets Groups Projects
Commit c7b8d977 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

use constant instead of magic number

parent cc529468
No related branches found
No related tags found
No related merge requests found
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment