1 Reply Latest reply on Nov 7, 2007 9:08 PM by shane.bryzak

    dynamic call to #{s:hasRole()}

    mhissen

      I want to secure my page Administration.xhtml. In Administration.page.xml file, I insert the tag:

      <restrict> #{s:hasRole('admin')} </restrict>


      I want to change this entry so it considers a static property like this :

      <restrict>#{s:hasRole(loggedUser.role)}</restrict>


      LoggedUser being an Outjected bean, but loggedUser.role is not interpreted ...

      Any ideas?
      Thanks