diff --git a/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js b/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js index 9b3225dc3..870258f35 100644 --- a/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js +++ b/app/pages/resource/reservation-calendar/ReservationCalendarContainer.js @@ -28,7 +28,7 @@ import ReservationConfirmation from 'shared/reservation-confirmation'; import recurringReservations from 'state/recurringReservations'; import { injectT } from 'i18n'; import { getEditReservationUrl } from 'utils/reservationUtils'; -import { hasMaxReservations, reservingIsRestricted } from 'utils/resourceUtils'; +import { hasMaxReservations, reservingIsRestricted, isStaffForResource } from 'utils/resourceUtils'; import reservationCalendarSelector from './reservationCalendarSelector'; import ReservingRestrictedText from './ReservingRestrictedText'; import TimeSlots from './time-slots'; @@ -155,6 +155,8 @@ export class UnconnectedReservationCalendarContainer extends Component { const isOpen = Boolean(timeSlots.length); const showTimeSlots = isOpen && !reservingIsRestricted(resource, date); const selectedDateSlots = this.getSelectedDateSlots(timeSlots, selected); + const isResourceStaff = (isAdmin && resource) ? isStaffForResource(resource) : false; + return (