https://issues.shibboleth.net/jira/browse/CPPOST-90
[shibboleth/cpp-opensaml.git] / saml / saml2 / core / impl / Assertions20SchemaValidators.cpp
index 306232c..9048bfb 100644 (file)
@@ -94,10 +94,7 @@ namespace opensaml {
         END_XMLOBJECTVALIDATOR;
 
         BEGIN_XMLOBJECTVALIDATOR(SAML_DLLLOCAL,Conditions);
-            if (!ptr->hasChildren()) {
-                XMLOBJECTVALIDATOR_ONEOF(Conditions,NotBefore,NotOnOrAfter);
-            }
-            else if (ptr->getOneTimeUses().size() > 1) {
+            if (ptr->getOneTimeUses().size() > 1) {
                 throw ValidationException("Multiple OneTimeUse condition elements are not permitted.");
             }
             else if (ptr->getProxyRestrictions().size() > 1) {