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 roles ? | Forum

Chmielewski
Chmielewski Aug 25 '20

I can retrieve some very basic data with:

OW::getUser()->getUserObject()

But I have no idea how to retrieve roles an user belongs to. Any idea on how to do that ?

Paul
Paul Aug 25 '20

$authService = BOL_AuthorizationService::getInstance();

$roles = $authService->findUserRoleList($userId);

AppXprt
AppXprt Aug 28 '20
Man... Paul...


Why aren't you an Oxwall Plugin Developer?

You know Oxwall really well and I know you could do it.

dave Leader
dave Aug 31 '20

When you get the roles you will find a role that is  wqewq. that is the free role. I ask one time why they had that as a free role, looks like junk to me.  They said it was test data that they forgot until it was too late and then they had to leave it.  


Speaking of test data, you will find lots of test data still in the oxwall db, especially in the language section, and a few other places.   They never did remove it before releasing the product lol  

REHMAN
REHMAN Apr 19
You should indulge in a tournament for just one of the highest quality blogs on the internet. Let me suggest this website! tydo88
REHMAN
REHMAN Apr 19
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. kids smartwatch
REHMAN
REHMAN Apr 19
Keep up the good work , I read few posts on this web site and I conceive that your blog is very interesting and has sets of fantastic information. kids smartwatch
REHMAN
REHMAN Apr 25
I might suggest almost any information. It really is superb to see you might reveal with text by heart as well as display quality by using precious information is reasonably purely known. natraj pencil packing job