EL Expression to Make a Menu Item / Page Visible when user has one role and does not has another
Summary
EL Expression to Make a Menu Item / Page Visible when user has one role and does not has anotherContent
Hi Experts,
I am trying to make a specific Menu-Item / Quick-Link/ Page visible if user has say one role (Role_A) and does not has another role (say Role_B).
I am using the below expression:
#{securityContext.userInRole['ROLE_A'] and !securityContext.userInRole['ROLE_B']}
While this has worked for me (in Google Chrome but not in IE) this doesnt works when one of my colleague tries it.
I have cleared the cache and still same issue.
Am I Missing something?
Tagged:
1