BUG 9221 Adjustment for standardization of code SOLVED

- Adjustment workflow/engine/methods/users/usersGroups.php file.
This commit is contained in:
Hector Cortez
2012-07-03 09:04:27 -04:00
parent cb6bd6bbf3
commit c87c59d28d

View File

@@ -1,4 +1,5 @@
<?php
/**
* usersGroups.php
*
@@ -22,13 +23,14 @@
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
*
*/
if (($RBAC_Response=$RBAC->userCanAccess("PM_LOGIN"))!=1) return $RBAC_Response;
if (($RBAC_Response = $RBAC->userCanAccess("PM_LOGIN")) != 1) {
return $RBAC_Response;
}
global $RBAC;
$access = $RBAC->userCanAccess('PM_USERS');
if ($access != 1) {
switch ($access)
{
switch ($access) {
case -1:
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
G::header('location: ../login/login');
@@ -70,9 +72,15 @@ $oDataset->next();
$aRow = $oDataset->getRow();
switch ($_REQUEST['type']) {
case 'summary': $ctab = 0; break;
case 'group': $ctab = 1; break;
case 'auth': $ctab = 2; break;
case 'summary':
$ctab = 0;
break;
case 'group':
$ctab = 1;
break;
case 'auth':
$ctab = 2;
break;
}
$users = Array();
@@ -91,3 +99,4 @@ $oHeadPublisher->assign('USERS', $users);
$oHeadPublisher->assign('hasAuthPerm', ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1));
G::RenderPage('publish', 'extJs');