From bbad9d127d1a55a85174a289b5b7722b266d9ca0 Mon Sep 17 00:00:00 2001 From: lesion Date: Thu, 16 May 2024 18:16:20 +0200 Subject: [PATCH] fix: Allow admins to add past events #396 --- components/DateInput.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/components/DateInput.vue b/components/DateInput.vue index a94eb614..b782f2b8 100644 --- a/components/DateInput.vue +++ b/components/DateInput.vue @@ -22,8 +22,8 @@ v-col(cols=12) :is-dark="is_dark" is-inline is-expanded - :min-date='new Date()') - v-col.calh.text-center(slot='placeholder') + :min-date='!$auth?.user?.is_admin && new Date()') + v-col.calh.mx-auto(slot='placeholder') v-progress-circular(indeterminate color='primary') div.text-center.mb-2(v-if='type === "recurrent"')