Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Maarch
maarchRM
Commits
394b564a
Verified
Commit
394b564a
authored
Jan 03, 2022
by
Jerome Boucher
Browse files
fix/18141: add back derogation
parent
66d2cba4
Pipeline
#15332
failed with stages
in 23 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.gitignore
View file @
394b564a
...
...
@@ -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/*
...
...
src/bundle/medona/Controller/ArchiveDeliveryRequest.php
View file @
394b564a
...
...
@@ -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"
);
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment