Skip to content
Snippets Groups Projects
Commit 424ea1f5 authored by Neuber, Eugen Ramon's avatar Neuber, Eugen Ramon :speech_balloon:
Browse files

Fix rentation duration test /WIP

parent fbd0f8bf
No related branches found
No related tags found
No related merge requests found
......@@ -72,6 +72,7 @@ final class CreateFileDataAction extends BaseBlobController
// TODO check if request is NOT too old
// Check retentionDuration & idleRetentionDuration valid durations
$fileData->setRetentionDuration($data['retentionDuration'] ?? '');
if ($bucket->getMaxRetentionDuration() < $fileData->getRetentionDuration() || !$fileData->getRetentionDuration()) {
$fileData->setRetentionDuration((string) $bucket->getMaxRetentionDuration());
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment