PM-3324 "REST endpoint PUT /cases/{app_uid}/reassign-case" SOLVED
> Code Isuue:
0017925: REST endpoint PUT /cases/{app_uid}/reassign-case can not reassign cases to ad hoc users
> Solution:
Se agrega validacion en el siguiente Endpoint cuando se utiliza el servicio REST, el mismo se puede reasingar un caso
a un usuario de tipo Ad Hoc.
PUT /cases/{app_uid}/reassign-case
This commit is contained in:
@@ -2891,7 +2891,7 @@ class wsBase
|
||||
|
||||
$tasUid = $aRow['TAS_UID'];
|
||||
$derivation = new Derivation();
|
||||
$userList = $derivation->getAllUsersFromAnyTask( $tasUid );
|
||||
$userList = $derivation->getAllUsersFromAnyTask($tasUid, true);
|
||||
|
||||
if (! in_array( $userIdTarget, $userList )) {
|
||||
$result = new wsResponse( 34, G::loadTranslation( 'ID_TARGET_USER_DOES_NOT_HAVE_RIGHTS' ) );
|
||||
@@ -3370,4 +3370,3 @@ class wsBase
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user