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

How to retrieve user role ? | Forum

Chmielewski
Chmielewski Dec 27 '22
I tried that


// list user roles of currently logged in user $userId = OW::getUser()->getId(); // get current user Id BOL_AuthorizationService::getInstance()->findUserRoleList($userId);

But I do retrive this data:
[0] => BOL_AuthorizationRole Object ( [name] => wqewq [sortOrder] => 1 [displayLabel] => 0 [custom] => [id] => 12 [_fieldsHash:protected] => Array ( [name] => 1463004011 [sortOrder] => 2212294583 [displayLabel] => 4108050209 [custom] => 0 ) ) )
Nothing about role !