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

Edit event for Admins only | Forum

Shane
Shane Mar 25 '13
My client wants use the admin user or a specific role to add a text message to an event. I have set up a div on the base_view.html file inside the ow_plugins/event/views/controllers


I have been trying use $isAdmin to hide and show the container, but it seems this is also allowing the admin of the event to access the div. 


Any recommendations?

Alia Team
Alia Mar 25 '13
Topic was moved from General Questions.
Michael I.
Michael I. Mar 27 '13
This function will help you: OW::getUser()->isAdmin()
Shane
Shane Mar 27 '13
Quote from Michael I. This function will help you: OW::getUser()->isAdmin()

Excellent this has worked. 


BTW - is there a function to get role?

The Forum post is edited by Shane Mar 27 '13
Michael I.
Michael I. Apr 3 '13
Try this one:

BOL_AuthorizationService::getInstance()->findUserRoleList($userId)