Hide/show dashboard in process workspace based on user's role/capability
In APS, there is a way to control access to analytics app via capability group. If I remove this capability from a user (see attached screenshot), the analytics app in the OOTB activiti-app will be removed from the landing page. However, ADF based process workspace is not respecting this configuration, instead the dashboard component is shown to all users!
Removal of a user from this capability group also causes the whole PW to stall and users gets prompted for username/pw as shown in the attached screenshot. I assume it is because of an access denied error from an analytics api call which is being called to render the dashboards.