Syntax error while combining EL expression for Profile.value and securityContext.userInRole
Summary:
I have requirement to view the logged in user to see the required functions/privilege . I'm trying to combine the Profile.Value and securityContext.userInRole in an EL, but facing issue to validate them.
#{(Profile.values.HRC_ELASTIC_SEARCH_ENABLED eq 'Y'
and Profile.values.ORA_PER_ORACLE_SEARCH_WORKERSLOV_ENABLED eq 'Y'
and Profile.values.ORA_HCM_VBCS_PWA_ENABLED eq 'Y'
and Profile.values.ORA_PER_ELIGIBLE_JOBS_REDWOOD_ENABLED eq 'Y'
and securityContext.userInRole['Custom_User_Role'])}
Content (please ensure you mask any confidential information):
Version (include the version you are using, if applicable):
Code Snippet (add any code snippets that support your topic, if applicable):