We build. You grow.

Get best community software here

Start a social network, a fan-site, an education project with oxwall - free opensource community software

get user role with id. | Forum

Gerardo
Gerardo Nov 22 '14
Hello there.. im doing a modification on the chat section. how to get the user role with the id?


i get the username with this


$id = $message->senderId;$userName = BOL_UserService::getInstance()->getUserName($id);


but whats the code for getting the role?

iDragon Solution Co., Ltd
The following code below is what you need to get the user role:

$userRoleList = BOL_AuthorizationService::getInstance()->findUserRoleList($userId);