Hide 'Add' button for HR's on Family and Emergency page
Hello,
I have a requirement to hide the “add” button on family and emergency contact screen from HR's view i.e My Client Group -> show more -> Family And Emergency.
I tried it through page composer by giving an EL expression in Add rendered. Hence, it is working fine on My Client Group tab but the changes are reflecting on Me tab also which is not a requirement, just need it on My Client Group tab only, which means it should be hidden from HR's perspective but not from Employee's view.
EL expression :-
#{(backingBeanScope.FamilyAndEmergencyContactsBean.addRendered['Relationship'] and backingBeanScope.FamilyAndEmergencyContactsBean.hasAccess eq true)and(securityContext.userInRole['ORA_ASM_APPLICATION_IMPLEMENTATION_CONSULTANT_JOB,ARUP_IT_SECURITY_MANAGER_JOB_ROLE,ARUP_GLOBAL_INTERNATIONAL_MOBILITY_PEOPLE_PARTNER_JOB_ROLE'])}