Verified Commit 394b564a authored by Jerome Boucher's avatar Jerome Boucher
Browse files

fix/18141: add back derogation

parent 66d2cba4
Pipeline #15332 failed with stages
in 23 seconds
......@@ -5,6 +5,7 @@ data/maarchRM/luceneIndex/
data/maarchRM/conf/vhost.win.conf
data/maarchRM/conf/vhost.conf
web/tmp
data/tmp
web/public/dependency/
dependency/fileSystem/plugins/fid/cache/*
dependency/csrf/log/*
......
......@@ -182,14 +182,20 @@ class ArchiveDeliveryRequest extends abstractMessage
$communicableArchives = [];
foreach ($archives as $archive) {
if ($this->isCommunicable($archive)) {
if (
$this->isCommunicable($archive)
|| $derogation == true
) {
$communicableArchives['communicable'][] = $archive;
} else {
$communicableArchives['notCommunicable'][] = $archive;
}
}
if (isset($communicableArchives['notCommunicable']) && !empty($communicableArchives['notCommunicable'])) {
if (
isset($communicableArchives['notCommunicable'])
&& !empty($communicableArchives['notCommunicable'])
) {
throw \laabs::newException("medona/notCommunicableException");
}
......
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