I am building my custom menu using nested pages. Is it possible to test the access level of the current nested page (while building the menu, in the loop) and decide to hide it if access level is not equal to zero? I have searched for this but can only find how to test the access level of the user being logged in.

In pseudo code this is what I would like to achieve:
Code: Select all
<cms:nested_pages>
  IF user logged in THEN
    show nested page in menu
  ELSE
    IF access level of current nested page = '0' THEN
      show nested page in menu
    ENDIF
    // so menu is not shown when access level of the page > 0 and user not logged in
  ENDIF
</cms:nested_pages>