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