You are here

private function EckEntityAccessControlHandler::canBypassAccessCheck in Entity Construction Kit (ECK) 8

Determines if the given account is allowed to bypass access control.

Parameters

\Drupal\Core\Session\AccountInterface|null $account: The account.

Return value

bool Can the user bypass the access check?

2 calls to EckEntityAccessControlHandler::canBypassAccessCheck()
EckEntityAccessControlHandler::access in src/EckEntityAccessControlHandler.php
Checks access to an operation on a given entity or entity translation.
EckEntityAccessControlHandler::createAccess in src/EckEntityAccessControlHandler.php
Checks access to create an entity.

File

src/EckEntityAccessControlHandler.php, line 28

Class

EckEntityAccessControlHandler
Access controller for the EckEntity entity.

Namespace

Drupal\eck

Code

private function canBypassAccessCheck(AccountInterface $account = NULL) {
  $account = $this
    ->prepareUser($account);
  return $account
    ->hasPermission('bypass eck entity access');
}