BUG-14596 User with "PM_REASSIGNCASE" permission can not reassign cases to himself.

This is  new feature, now the user with the "PM_REASSIGNCASE" permission is showed in the list of users to reassign the case.
This commit is contained in:
jennylee
2014-05-15 11:39:50 -04:00
parent 9a4214f3e5
commit 33caae08f2

View File

@@ -6460,14 +6460,8 @@ class Cases
global $RBAC; global $RBAC;
//Adding the actual user if this has the PM_REASSIGNCASE permission assigned. //Adding the actual user if this has the PM_REASSIGNCASE permission assigned.
if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1){ if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1){
foreach ($row as $usr) { if(!in_array($RBAC->aUserInfo['USER_INFO']['USR_UID'], $row)){
$usr_exist = false; $row[] = $RBAC->aUserInfo['USER_INFO']['USR_UID'];
if($usr == $USR_UID){
$usr_exist = true;
}
}
if ($usr_exist == false){
$row[] = $USR_UID;
} }
} }