diff --git a/nuxeo-retention-package/src/main/resources/install/templates/retention/nxserver/config/retention-compliance-config.xml.nxftl b/nuxeo-retention-package/src/main/resources/install/templates/retention/nxserver/config/retention-compliance-config.xml.nxftl index 9dd3f0d4..07dd2f53 100644 --- a/nuxeo-retention-package/src/main/resources/install/templates/retention/nxserver/config/retention-compliance-config.xml.nxftl +++ b/nuxeo-retention-package/src/main/resources/install/templates/retention/nxserver/config/retention-compliance-config.xml.nxftl @@ -1,6 +1,11 @@ -<#if "${nuxeo.retention.compliance.enabled}" == "true"> +<#assign + isStrictDefined = (nuxeo.retention.strictmode.enabled)?? + isStrictTrue=isStrictDefined && "${nuxeo.retention.strictmode.enabled}" == "true" + isCompliantTrue="${nuxeo.retention.compliance.enabled}" == "true" +> +<#if isStrictTrue || (!isStrictDefined && isCompliantTrue)> org.nuxeo.retention.types