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

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

parent 45166d0c
......@@ -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;
......
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