Commit ff2f44f8 authored by Arnaud Pauget's avatar Arnaud Pauget
Browse files

Merge branch 'fix/14264_log_consultation' into 'release/2.6.1'

fix (14264) : add consultation event on digitalResources when using read Metadata

See merge request !9
parents 45166d0c a81ffc8d
......@@ -258,6 +258,7 @@ class digitalSafe
$replyMessage->descriptionObject = $archive->descriptionObject;
foreach ($archive->digitalResources as $digitalResource) {
$this->archiveController->logConsultation($archive, $digitalResource);
unset($digitalResource->address);
}
......@@ -348,13 +349,13 @@ class digitalSafe
throw new \core\Exception\UnauthorizedException("You are not allowed to do this action");
}
// if ($securityLevel == $account::SECLEVEL_USER) {
// $position = $this->servicePositionController->getPosition($account->accountId);
//
// if (!$originatorOrgRegNumber || $originatorOrgRegNumber != $position->orgId) {
// throw new \core\Exception\UnauthorizedException("You are not allowed to do this action");
// }
// }
// if ($securityLevel == $account::SECLEVEL_USER) {
// $position = $this->servicePositionController->getPosition($account->accountId);
// if (!$originatorOrgRegNumber || $originatorOrgRegNumber != $position->orgId) {
// throw new \core\Exception\UnauthorizedException("You are not allowed to do this action");
// }
// }
$replyMessage = new \stdClass();
$replyMessage->originatorOwnerOrgRegNumber = $originatorOwnerOrgRegNumber;
......
......@@ -22,6 +22,8 @@ privileges = "{
],
'2' : [
'journal/audit',
'journal/lifeCycleJournal',
'journal/searchLogArchive',
'adminArchive/*',
'adminTech/adminEventFormat',
'adminTech/adminFormat',
......
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