I am trying to hide/disable certain features in my app based on ROLE of currently logged-in user. For example an ADMIN can access "orders" tab in my app where an EMPLOYEE cannot. How do i get this information?

asked 2016-10-20 19:24:16 -0500

Jacks gravatar image

1 answer

Sort by  

For getting the role of the Employee you have to use EmployeeConnector of Clover. Use following code with employeeconnector:- Suppose empConnector is the object of EmployeeConnectore class. employeeConnector.getEmployee().getRole();

answered 2016-10-21 00:11:00 -0500

bejoynair gravatar image