From 33caae08f2667bf83c62338d95f1b88025c7e6ae Mon Sep 17 00:00:00 2001 From: jennylee Date: Thu, 15 May 2014 11:39:50 -0400 Subject: [PATCH] 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. --- workflow/engine/classes/class.case.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/workflow/engine/classes/class.case.php b/workflow/engine/classes/class.case.php index 326e1d4de..bdbeb7718 100755 --- a/workflow/engine/classes/class.case.php +++ b/workflow/engine/classes/class.case.php @@ -6460,14 +6460,8 @@ class Cases global $RBAC; //Adding the actual user if this has the PM_REASSIGNCASE permission assigned. if ($RBAC->userCanAccess('PM_REASSIGNCASE') == 1){ - foreach ($row as $usr) { - $usr_exist = false; - if($usr == $USR_UID){ - $usr_exist = true; - } - } - if ($usr_exist == false){ - $row[] = $USR_UID; + if(!in_array($RBAC->aUserInfo['USER_INFO']['USR_UID'], $row)){ + $row[] = $RBAC->aUserInfo['USER_INFO']['USR_UID']; } }