Commit 07c6daaa authored by Guillaume Heurtier's avatar Guillaume Heurtier
Browse files

FIX #17812 TIME 0:05 delegate can only give delegated parallel opinion in delegated basket

parent f826c739
......@@ -1429,15 +1429,8 @@ class PreProcessActionController
$isInCircuit = ListInstanceModel::get([
'select' => [1],
'where' => ['res_id = ?', 'difflist_type = ?', 'process_date is null', 'item_id = ?', 'item_mode = ?'],
'data' => [$resId, 'entity_id', $GLOBALS['id'], 'avis']
'data' => [$resId, 'entity_id', $args['userId'], 'avis']
]);
if (empty($isInCircuit)) {
$isInCircuit = ListInstanceModel::get([
'select' => [1],
'where' => ['res_id = ?', 'difflist_type = ?', 'process_date is null', 'item_id = ?', 'item_mode = ?'],
'data' => [$resId, 'entity_id', $args['userId'], 'avis']
]);
}
if (empty($isInCircuit)) {
$resourcesInformation['error'][] = ['alt_identifier' => $resource['alt_identifier'], 'res_id' => $resId, 'reason' => 'userNotInDiffusionList'];
} else {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment