Only check for visible and restricted pages in navigation helpers.

Do not check for public state any more.
Removes duplicated attribute check in show pages permission.