Friday, March 24, 2017

Get Current User Role in SugarCRM /Suitcrm

global $current_user;
include_once(‘modules/ACLRoles/ACLRole.php’);
$roles = getUserRoleNames($current_user->id);
print_r($roles);

No comments:

Post a Comment