Commit 92ca581e authored by Chris Graham's avatar Chris Graham
Browse files

Fixed MANTIS-4618 ("Did you mean" suggests pages with no permissions)

parent f0198a7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -301,7 +301,7 @@ function page_not_found($codename, $zone)
        $dist = 0.0;
        similar_text($from, $to, $dist);
        $threshold = 75.0;
        if (($dist > $threshold) && (has_page_access(get_member(), $codename, $zone))) {
        if (($dist > $threshold) && (has_page_access(get_member(), $possibility, $zone))) {
            $did_mean[$dist] = $possibility;
        }
    }