diff --git a/packages/api/server/controllers/shantytown/close/shantytown.close.validator.ts b/packages/api/server/controllers/shantytown/close/shantytown.close.validator.ts index 1cf583977e..f78962a9d7 100644 --- a/packages/api/server/controllers/shantytown/close/shantytown.close.validator.ts +++ b/packages/api/server/controllers/shantytown/close/shantytown.close.validator.ts @@ -40,13 +40,6 @@ export default [ return value; }) .custom((value, { req }) => { - const today = new Date(); - today.setHours(0, 0, 0, 0); - - if (value > today) { - throw new Error('La date de la fermeture du site ne peut pas ĂȘtre future'); - } - if (req.body.shantytown && req.body.shantytown.declaredAt) { const declaredDate = new Date(req.body.shantytown.declaredAt * 1000); declaredDate.setHours(0, 0, 0, 0); diff --git a/packages/frontend/webapp/src/components/FormFermetureDeSite/inputs/FormFermetureDeSiteInputClosedAt.vue b/packages/frontend/webapp/src/components/FormFermetureDeSite/inputs/FormFermetureDeSiteInputClosedAt.vue index 7ef4046240..edad55b3f0 100644 --- a/packages/frontend/webapp/src/components/FormFermetureDeSite/inputs/FormFermetureDeSiteInputClosedAt.vue +++ b/packages/frontend/webapp/src/components/FormFermetureDeSite/inputs/FormFermetureDeSiteInputClosedAt.vue @@ -4,7 +4,6 @@ width="w-64" name="closed_at" :label="labels.closed_at" - :maxDate="new Date()" :clearable="false" v-bind="$attrs" v-model="values.closed_at"