What's new in Customer Journeys?

Connect and learn more!
How to hide "Add" button of Absence records for multiple roles — 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

How to hide "Add" button of Absence records for multiple roles

Accepted answer
45
Views
4
Comments

Summary:

Here, the business requirement is If the user has any of the below roles, the user is only able to view absence records not to edit. Here, there is an "Add" button when it comes to the absence records tile. 

1. MAS_HR_VIEW_DATA_DATA

2. MAS_Division_HR_VIEW_DATA_DATA

3. MAS_Group_HR_VIEW_DATA_DATA

1) Therefore, I've used the below EL expression to hide the "Add" button but the expression only works for 1st role (MAS_DIVISION_HR_VIEW_DATA_DATA)

#{!securityContext.userInRole['MAS_DIVISION_HR_VIEW_DATA_DATA'] or securityContext.userInRole['MAS_HR_VIEW_DATA_DATA'] or securityContext.userInRole['MAS_GROUP_HR_VIEW_DATA_DATA']}

Howdy, Stranger!

Log In

To view full details, sign in.

Register

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