Dear All
Context:
I am trying to create a user, role, where each role can have any combination of a predefined set of privileges (viewCustomers, viewReservations, cancelReservation, etc), these privileges are given to the role at runtime.
Problem:
I am trying to use this privilege system to limit what is visible on my web app.
What I would like to do is
<h:div rendered="#{hasPrivilege["viewCustomers"]}" >
In addition to isUserInRole, Seam also provides access to the Principal.
See userPrincipal
http://docs.jboss.com/seam/latest/reference/en/html/components.html#d0e6626