Verified Commit ab2f2db3 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Add new variable to check if the archive is communicable or not

parent 568b3956
......@@ -122,8 +122,8 @@ class ArchiveDeliveryRequest extends abstractMessage
$messages = array();
foreach ($archiveIds as $archiveId) {
$archive = $this->archiveController->retrieve($archiveId);
$archive = $this->archiveController->retrieve($archiveId, false, $checkAccess = true, $isCommunication = true);
if (!isset($archivesByOriginator[$archive->originatorOrgRegNumber])) {
$archivesByOriginator[$archive->originatorOrgRegNumber] = array();
}
......
Markdown is supported
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