function rooms_booking_list_customer_profiles_access in Rooms - Drupal Booking for Hotels, B&Bs and Vacation Rentals 7
Check if current user can create or update a booking.
1 string reference to 'rooms_booking_list_customer_profiles_access'
- rooms_booking_menu in modules/
rooms_booking/ rooms_booking.module - Implements hook_menu().
File
- modules/
rooms_booking/ rooms_booking.module, line 68 - Manage Bookings - Bookings are tied to a customer profile and possible a Unit ID and Order ID.
Code
function rooms_booking_list_customer_profiles_access() {
if (rooms_entity_access('create', 'rooms_booking', NULL, 'rooms_booking') || rooms_entity_access('update', 'rooms_booking', NULL, 'rooms_booking')) {
return TRUE;
}
}