. * * For more information, contact Colosa Inc, 2566 Le Jeune Rd., * Coral Gables, FL, 33134, USA, or email info@colosa.com. * **/ global $RBAC; switch ($RBAC->userCanAccess('PM_USERS')) { case - 2: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_SYSTEM', 'error', 'labels'); G::header('location: ../login/login'); die; break; case - 1: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels'); G::header('location: ../login/login'); die; break; case -3: G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels'); G::header('location: ../login/login'); die; break; } $G_MAIN_MENU = 'processmaker'; $G_SUB_MENU = 'users'; $G_ID_MENU_SELECTED = 'USERS'; $G_ID_SUB_MENU_SELECTED = 'ROLES'; $G_PUBLISH = new Publisher; $oHeadPublisher =& headPublisher::getSingleton(); $oHeadPublisher->addExtJsScript('roles/rolesUsersPermission', false); //adding a javascript file .js $oHeadPublisher->addContent('roles/rolesUsersPermission'); //adding a html file .html. $roles = Array(); $roles['ROL_UID'] = $_GET['rUID']; $roles['ROL_CODE'] = $RBAC->getRoleCode($_GET['rUID']); $roles['CURRENT_TAB'] = ($_GET['tab']=='permissions') ? 1 : 0; $oHeadPublisher->assign('ROLES', $roles); G::RenderPage('publish', 'extJs'); ?>