You are here

function bat_event_type_access in Booking and Availability Management Tools for Drupal 8

Same name and namespace in other branches
  1. 7 modules/bat_event/bat_event.module \bat_event_type_access()

Access callback for the entity API.

File

modules/bat_event/bat_event.module, line 218
Manage Events - Events store the EventValue of a Unit over a period of time.

Code

function bat_event_type_access(EntityInterface $entity, $operation, AccountInterface $account) {
  $account
    ->hasPermission('administer bat_event_type entities');
}