BUG 9221 Adjustment for standardization of code SOLVED
- Adjustment workflow/engine/methods/users/usersGroups.php file.
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* usersGroups.php
|
* usersGroups.php
|
||||||
*
|
*
|
||||||
@@ -22,13 +23,14 @@
|
|||||||
* Coral Gables, FL, 33134, USA, or email info@colosa.com.
|
* 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;
|
global $RBAC;
|
||||||
|
|
||||||
$access = $RBAC->userCanAccess('PM_USERS');
|
$access = $RBAC->userCanAccess('PM_USERS');
|
||||||
if ($access != 1) {
|
if ($access != 1) {
|
||||||
switch ($access)
|
switch ($access) {
|
||||||
{
|
|
||||||
case -1:
|
case -1:
|
||||||
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
G::SendTemporalMessage('ID_USER_HAVENT_RIGHTS_PAGE', 'error', 'labels');
|
||||||
G::header('location: ../login/login');
|
G::header('location: ../login/login');
|
||||||
@@ -70,9 +72,15 @@ $oDataset->next();
|
|||||||
$aRow = $oDataset->getRow();
|
$aRow = $oDataset->getRow();
|
||||||
|
|
||||||
switch ($_REQUEST['type']) {
|
switch ($_REQUEST['type']) {
|
||||||
case 'summary': $ctab = 0; break;
|
case 'summary':
|
||||||
case 'group': $ctab = 1; break;
|
$ctab = 0;
|
||||||
case 'auth': $ctab = 2; break;
|
break;
|
||||||
|
case 'group':
|
||||||
|
$ctab = 1;
|
||||||
|
break;
|
||||||
|
case 'auth':
|
||||||
|
$ctab = 2;
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
$users = Array();
|
$users = Array();
|
||||||
@@ -91,3 +99,4 @@ $oHeadPublisher->assign('USERS', $users);
|
|||||||
$oHeadPublisher->assign('hasAuthPerm', ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1));
|
$oHeadPublisher->assign('hasAuthPerm', ($RBAC->userCanAccess('PM_SETUP_ADVANCE') == 1));
|
||||||
|
|
||||||
G::RenderPage('publish', 'extJs');
|
G::RenderPage('publish', 'extJs');
|
||||||
|
|
||||||
Reference in New Issue
Block a user