You are here

function bat_event_series_access in Booking and Availability Management Tools for Drupal 8

Checks event access for various operations.

Parameters

string $op: The operation being performed. One of 'view', 'update', 'create' or 'delete'.

object $event: Optionally an event to check access for.

object $account: The user to check for. Leave it to NULL to check for the current user.

Return value

\Drupal\Core\Access\AccessResult

1 call to bat_event_series_access()
EventSeriesAccessControlHandler::checkCreateAccess in modules/bat_event_series/src/EventSeriesAccessControlHandler.php
Performs create access checks.

File

modules/bat_event_series/bat_event_series.module, line 195

Code

function bat_event_series_access(EntityInterface $entity, $operation, AccountInterface $account) {
  return bat_entity_access($entity, $operation, $account);
}