You are here

public function ConnectionAccess::access in RedHen CRM 8

Determine if the current user has access or not.

Parameters

\Drupal\Core\Session\AccountInterface $account: The user who wants to access this view.

Return value

bool Returns whether the user has access to the view.

Overrides AccessPluginBase::access

File

modules/redhen_connection/src/Plugin/views/access/ConnectionAccess.php, line 71

Class

ConnectionAccess
Access plugin for RedHen Connections.

Namespace

Drupal\redhen_connection\Plugin\views\access

Code

public function access(AccountInterface $account) {
  return $this->connectionAccessCheck
    ->access($this->routeMatch, $account);
}