diff --git a/view/room_reservations_calendar.view.inc b/view/room_reservations_calendar.view.inc
index 58358d2..a922663 100644
--- a/view/room_reservations_calendar.view.inc
+++ b/view/room_reservations_calendar.view.inc
@@ -227,22 +227,24 @@ function theme_room_reservations($variables) {
// The time slot can be reserved by the current user.
$viewable_class = '';
$widthclass = '';
- if ($booked_class == 'reservable' &&
+ // BEGIN UPEI CHANGES
+ if ($booked_class == 'reservable' && ($time_slot['time'] == '0900' || $time_slot['time'] == '1330' || $time_slot['time'] == '1230') &&
(user_access('create room reservations standard') || user_access('create room reservations extended') || user_access('administer room reservations system'))) {
$link = l(
- '',
+ '',
'node/add/room-reservations-reservation/' . $month_number . '/' . $xday . '/' . $time_slot['time'] . '/' . $rid,
array('html' => true)
);
$viewable = '';
}
// The time slot can be reserved by the current user, but the user must login first.
- elseif ($booked_class == 'open') {
+ elseif ($booked_class == 'open' && ($time_slot['time'] == '0900' || $time_slot['time'] == '1330' || $time_slot['time'] == '1230')) {
$link = "";
+ $time_slot['time'] . "/" . $rid . "'>";
$viewable = '';
}
+ // END UPEI CHANGES
elseif ($booked_class == 'closed') {
$link = '';
}