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

How can we restrict My Client Group for a specific role?

Received Response
21
Views
1
Comments

Hello,

How can we restrict My Client Group menu for all users with "TAV_DEPARTMENT_ABSENCE_RESPONSIBLE_ALA" role via Structure?

An example user has the following two roles:

TAV_DEPARTMENT_ABSENCE_RESPONSIBLE_ALA

TAV_PER_ALA_EMPLOYEE_ABSTRACT (Custom Employee role)


User still has access to My Client Group when we try this EL Expression on Structure:

#{securityContext.userInRole['TAV_DEPARTMENT_ABSENCE_RESPONSIBLE_ALA'] ? false : true}

But it worked when we tried this:

#{securityContext.userInRole['TAV_DEPARTMENT_ABSENCE_RESPONSIBLE_ALA, TAV_PER_ALA_EMPLOYEE_ABSTRACT'] ? false : true}


However, we can't go with the second option because there can be different roles for different users, we can not forecast.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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