PM-1142 "Any user can reassign any case even if he/she is not assign to the task" SOLVED

This commit is contained in:
Freddy Daniel Rojas Valda
2014-12-19 13:38:04 -04:00
parent dbe8219e6b
commit 69d24d5f68

View File

@@ -6569,8 +6569,8 @@ class Cases
}
global $RBAC;
//Adding the actual user if this has the PM_REASSIGNCASE permission assigned.
if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1 && $aUser['USR_UID'] == $USR_UID) {
//Adding the actual user if this has the PM_SUPERVISOR permission assigned.
if ($RBAC->userCanAccess('PM_SUPERVISOR') == 1) {
if(!in_array($RBAC->aUserInfo['USER_INFO']['USR_UID'], $row)) {
$row[] = $RBAC->aUserInfo['USER_INFO']['USR_UID'];
}