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?
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?
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();
No one has followed this question yet.