Is there a way to check if a page is protected (restirct public access)

Hi,

We’re currently looping through a lot of pages for our custom navigation. We are planing to show locked pages on the navigation, then users must sign into view them.

Is there a way to check if a page has been restricted from public view? I.e. A user must login to see it?

We’d like to show an icon on the template if that is the case.

Any ideas?

Thanks


This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/115190-is-there-a-way-to-check-if-a-page-is-protected-restirct-public-access