mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-11 20:13:17 +00:00
[DS-3348] Drop date check in EmbargoService (#1542)
* Drop date check in EmbargoService * Revise comment per review
This commit is contained in:
@@ -138,13 +138,10 @@ public class EmbargoServiceImpl implements EmbargoService
|
|||||||
+ result.toString());
|
+ result.toString());
|
||||||
}
|
}
|
||||||
|
|
||||||
// sanity check: do not allow an embargo lift date in the past.
|
/*
|
||||||
if (liftDate.before(new Date()))
|
* 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
|
||||||
throw new IllegalArgumentException(
|
*/
|
||||||
"Embargo lift date must be in the future, but this is in the past: "
|
|
||||||
+ result.toString());
|
|
||||||
}
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user