Commit 367fb1ba authored by Prosper De Laure's avatar Prosper De Laure

FEAT : fileplan export button is hidden when ths user does not have rights on this action

parent c095fb94
......@@ -384,27 +384,7 @@ trait archiveModificationTrait
$this->sdoFactory->update($archive, 'recordsManagement/archiveIndexationStatus');
}
$eventInfo = array(
'originatorOrgRegNumber' => $archive->originatorOrgRegNumber,
'archiverOrgRegNumber' => $archive->archiverOrgRegNumber,
);
foreach ($archive->digitalResources as $digitalResource) {
$eventInfo['resId'] = $digitalResource->resId;
$eventInfo['hashAlgorithm'] = $digitalResource->hashAlgorithm;
$eventInfo['hash'] = $digitalResource->hash;
$eventInfo['address'] = $digitalResource->address[0]->path;
$event = $this->lifeCycleJournalController->logEvent(
'recordsManagement/metadata',
'recordsManagement/archive',
$archive->archiveId,
$eventInfo,
$operationResult
);
}
$archive->lifeCycleEvent = array($event);
$this->logMetadataModification($archive, $operationResult);
if ($operationResult) {
$res['success'][] = (string)$archive->archiveId;
......
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