function bat_unit_access in Booking and Availability Management Tools for Drupal 8
Same name and namespace in other branches
- 7 modules/bat_unit/bat_unit.module \bat_unit_access()
Determines whether the given user has access to a unit.
1 call to bat_unit_access()
- UnitAccessControlHandler::checkCreateAccess in modules/
bat_unit/ src/ UnitAccessControlHandler.php - Performs create access checks.
File
- modules/
bat_unit/ bat_unit.module, line 165 - Manage units - Units are things that can be booked for some period of time. (e.g. rooms - but also villas bungalows, cars, drills, you-get-the-idea etc.)
Code
function bat_unit_access(EntityInterface $entity, $operation, AccountInterface $account) {
return bat_entity_access($entity, $operation, $account);
}