Get the permissions assigned to a page

Permalink
Hi

I am editing the Autonav and within the loop I need to get the permissions of each page the loop is on.

This is so I can highlight specific pages that the user has access to.

$permissions = new Permissions($_c);
if ($permissions->canRead()) {
    echo '<a class="highlight">'.$ni->getName().'</a>';
} else {
    echo $ni->getName();
}


The above doesn't work as the logged in user can read all the pages. I need to find out what the page permissions are.

Thanks in advance