BUG 7142 unable to reassign task to ad-hoc user via web-services function

This issue was fixed, it was asking if it has right in an array that returned a true value when it was false
This commit is contained in:
Carlos Pacha
2011-10-11 18:25:52 -04:00
parent c747a38caf
commit 4f5b4bbd5a

View File

@@ -1884,7 +1884,7 @@ class wsBase
$tasUid = $aRow['TAS_UID']; $tasUid = $aRow['TAS_UID'];
$derivation = new Derivation (); $derivation = new Derivation ();
$userList = $derivation->getAllUsersFromAnyTask( $tasUid ); $userList = $derivation->getAllUsersFromAnyTask( $tasUid );
if ( ! in_array ( $userIdTarget, $userList ) ) { if ( in_array ( $userIdTarget, $userList ) ) {
$result = new wsResponse (34, "The target user does not have rights to execute the task " ); $result = new wsResponse (34, "The target user does not have rights to execute the task " );
return $result; return $result;
} }