I want to secure my page Administration.xhtml. In Administration.page.xml file, I insert the tag:
<restrict> #{s:hasRole('admin')} </restrict>
<restrict>#{s:hasRole(loggedUser.role)}</restrict>
I just tested this, and it worked fine. Can you put a breakpoint in Identity.hasRole() to see which role it's actually checking for?