BUG 8757 fix code so reassignCase() web service works properly SOLVED.

- The reassignCase() web service doesn't allow assigned users to be designated to work on cases, but it does allow non-assigned users to be designated.
- Fix-Bug in the reassignCase function to be adjusted according to suggestion.
This commit is contained in:
Hector Cortez
2012-03-22 18:19:16 -04:00
parent 913d77d192
commit cf8123b1a1

View File

@@ -1965,7 +1965,7 @@ class wsBase
$tasUid = $aRow['TAS_UID'];
$derivation = new Derivation ();
$userList = $derivation->getAllUsersFromAnyTask( $tasUid );
if ( in_array ( $userIdTarget, $userList ) ) {
if ( !in_array ( $userIdTarget, $userList ) ) {
$result = new wsResponse (34, G::loadTranslation ('ID_TARGET_USER_DOES_NOT_HAVE_RIGHTS') );
return $result;
}