I have created a custom role and want to hide some navigation using an EL expression in structure. I have created the role, assigned myself the role and written the EL expression:
#{!(securityContext.userInAllRoles['WM_PAYSLIP_ONLY'])}
(Document attached with screenshots)
This is being returned as TRUE when in fact it should be FALSE since my user account has the role. This works for our other custom roles but not this one. I feel like I may be missing a bit of configuration which allows me to use this role for the navigation EL Expression.
Can someone please give me any insights?
Thanks in advance,
Dan