Page Composer expression to hide an attribute based on job role
Content
The below EL expression can be used to hide an attribute if a user is not in a particular job role (in this case the 'EGI_PRODUCT_DATA_STEWARD_JOB job role):
#{(!securityContext.userInRole['EGI_PRODUCT_DATA_STEWARD_JOB'])}
If anyone has other ideas/suggestions, please share.
Tagged:
2