Skip to content
Snippets Groups Projects
Verified Commit ea8f8b57 authored by Damien's avatar Damien
Browse files

FEAT #13126 TIME 0:10 Fix Folder print linked resources back

parent c3f74ad8
No related branches found
No related tags found
No related merge requests found
...@@ -373,7 +373,7 @@ class FolderPrintController ...@@ -373,7 +373,7 @@ class FolderPrintController
if (!Validator::intVal()->validate($linkedResource['resId'])) { if (!Validator::intVal()->validate($linkedResource['resId'])) {
return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not an integer']); 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']); return $response->withStatus(400)->withJson(['errors' => 'LinkedResources resId is not linked to resource']);
} }
if (!ResController::hasRightByResId(['resId' => $linkedResource['resId'], 'userId' => $GLOBALS['id']])) { if (!ResController::hasRightByResId(['resId' => $linkedResource['resId'], 'userId' => $GLOBALS['id']])) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment