Control Component Visibility on Purchasing Pages by Role
Content
Purchasing pages are secured by job roles out of the box. You can implement more fine-grained control to show or hide page components based on job role using Page Composer. The expression #{securityContext.userInRole[‘<role_code>']} returns true if the user has the job role, and you can use this condition to control the visibility of components.
For example, the View PDF button on the View Order page is visible not only to buyers but also to requesters and AP clerks when they drill into the order from their respective pages. The following steps show how to modify the View PDF button to be visible only to buyers.
12