How to hide "Add" button of Absence records for multiple roles
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']}