EL Expression to Make a Menu Item / Page Visible when user has one role and does not has another — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

EL Expression to Make a Menu Item / Page Visible when user has one role and does not has another

edited Oct 9, 2019 1:53PM in Workforce Management 5 comments

Summary

EL Expression to Make a Menu Item / Page Visible when user has one role and does not has another

Content

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?

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!