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

Display Page content based on user role in Plugin Development | Forum

Guna
Guna Dec 20 '14
I am creating a plugin for my oxwall site. It is coming good. But I have 4 type of user roles in my oxwall site.


A plugin page must be shown to each user with different content.


I have got the user role id, using the below code. 



$id = OW::getUser()->getId();  


$roleid= BOL_AuthorizationService::getInstance()->findUserRoleList($id);


$rolename=($roleid[0]->name);


$userroleId=($roleid[0]->id);




Using this $userroleId, I can able to display different content for each user role. 


But some plugins like, Groups and other plugins using,


BOL_Authorization


How to do that?

The Forum post is edited by Guna Dec 30 '14
ross Team
ross Dec 21 '14
Topic was moved from General Questions.