Prevent overlapping reservations per user
When making a new reservation, the user should not be allowed to set up a reservation that overlaps with one of their previously planned reservations. In this case, an error should be shown.
This is logic we have to implement in the custom reservation-calc
block by fetching a list of the user’s current reservations and cross-referencing this.
To prevent race conditions, re-fetch and re-validate all of the requirements just before submitting.