Get the Current User Role – SugarCRM / SuiteCRM
There was a requirement from client where he wants validation based on user role. So we need to check login user (current user) role name and put validation on it. This can be achieved by using below simple steps. we can get the current user role using the following code,…