Affects Version/s: Master
The options to unpublish workflow shouldn't be displayed for users that don't have permission to do it, on Kaleo Forms Admin.
Steps to Reproduce:
- Go to Control Panel > Users and Organizations and create a new user called 'Site Admin'
- Go to Memberships and make 'Site Admin' a member of Liferay DXP, then go to Roles and assign the 'Site Administrator' site role
- Sign out of Test/Test and sign in as 'Site Admin'
- Navigate to Content & Data > Kaleo Forms Admin
- Create a new process
- Add a name and click Next
- Choose any Field Set and click Next
The user is not able to see the Unpublish option on the kebab menu for each item, since only regular administrators should see it.
The user is able to see the unpublish option on the kebab menu for each item and click on it.
Verified on master: d0f6b0ff617f356c63894822b27b21f09a39fdb3