diff --git a/src/app/resource/controllers/FolderPrintController.php b/src/app/resource/controllers/FolderPrintController.php index 66cf8d52a9dd72d2a3b296c8adb8ced374a831cf..b34f660a89712fca52385198a081af8be551ea25 100755 --- a/src/app/resource/controllers/FolderPrintController.php +++ b/src/app/resource/controllers/FolderPrintController.php @@ -373,7 +373,7 @@ class FolderPrintController if (!Validator::intVal()->validate($linkedResource['resId'])) { return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not an integer']); } - if (!in_array($linkedResource['resId'], $controlResource['linkedResources'])) { + if (!in_array($linkedResource['resId'], $controlResource['linked_resources'])) { return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not linked to resource']); } if (!ResController::hasRightByResId(['resId' => $linkedResource['resId'], 'userId' => $GLOBALS['id']])) {