[DS-3348] Drop date check in EmbargoService (#1542)

* Drop date check in EmbargoService

* Revise comment per review
This commit is contained in:
Terry Brady
2017-03-08 10:28:25 -08:00
committed by Tim Donohue
parent e7fbbc44c8
commit 424f01ed65

View File

@@ -138,13 +138,10 @@ public class EmbargoServiceImpl implements EmbargoService
+ result.toString());
}
// sanity check: do not allow an embargo lift date in the past.
if (liftDate.before(new Date()))
{
throw new IllegalArgumentException(
"Embargo lift date must be in the future, but this is in the past: "
+ result.toString());
}
/*
* NOTE: We do not check here for past dates as it can result in errors during AIP restoration.
* Therefore, UIs should perform any such date validation on input. See DS-3348
*/
return result;
}