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:
@@ -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;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user