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?
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?
This function will help you: OW::getUser()->isAdmin()
BTW - is there a function to get role?
BOL_AuthorizationService::getInstance()->findUserRoleList($userId)