This commit is contained in:
Paula Quispe
2017-02-13 14:53:57 -04:00
parent f5c3808f5d
commit d0a8dfea50

View File

@@ -164,8 +164,8 @@ if ($actionAjax == "processListExtJs") {
} }
if ($action==='to_reassign') { if ($action==='to_reassign') {
if($RBAC->userCanAccess('PM_REASSIGNCASE') == 1) { if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1) {
} elseif($RBAC->userCanAccess('PM_REASSIGNCASE_SUPERVISOR') == 1) { } elseif ($RBAC->userCanAccess('PM_REASSIGNCASE_SUPERVISOR') == 1) {
$oAppCache = new AppCacheView(); $oAppCache = new AppCacheView();
$aProcesses = $oAppCache->getProUidSupervisor($_SESSION['USER_LOGGED']); $aProcesses = $oAppCache->getProUidSupervisor($_SESSION['USER_LOGGED']);
$cProcess->add(ProcessPeer::PRO_UID, $aProcesses, Criteria::IN); $cProcess->add(ProcessPeer::PRO_UID, $aProcesses, Criteria::IN);
@@ -198,7 +198,7 @@ if ($actionAjax == "verifySession") {
$response = new stdclass(); $response = new stdclass();
GLOBAL $RBAC; GLOBAL $RBAC;
//Check if the user is a supervisor to this Process //Check if the user is a supervisor to this Process
if($RBAC->userCanAccess('PM_REASSIGNCASE') == 1){ if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1) {
$response->reassigncase = true; $response->reassigncase = true;
$response->message = ''; $response->message = '';
$response->processeslist = ''; $response->processeslist = '';