You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently we simply check for admin privs and if a room uses prebookings to determine what kind of booking someone can create.
Instead of that we should actually return this information from the server to have a single source of truth, especially since we need to perform the check again when actually creating the booking.
Client-side code should already be using room.canUserBook and room.canUserPrebook for this, so all that's needed on the client is fetching the data with an API call and updating the getAllRooms selector to get the information from the correct place instead of the current "simple" check mentioned above.
The text was updated successfully, but these errors were encountered:
This depends on #3591.
Currently we simply check for admin privs and if a room uses prebookings to determine what kind of booking someone can create.
Instead of that we should actually return this information from the server to have a single source of truth, especially since we need to perform the check again when actually creating the booking.
Client-side code should already be using
room.canUserBook
androom.canUserPrebook
for this, so all that's needed on the client is fetching the data with an API call and updating thegetAllRooms
selector to get the information from the correct place instead of the current "simple" check mentioned above.The text was updated successfully, but these errors were encountered: