public function ViewJobAccess::access

File

src/Plugin/views/access/ViewJobAccess.php, line 36

Class

ViewJobAccess
Access plugin that checks multiple permissions.

Namespace

Drupal\tmgmt\Plugin\views\access

Code

public function access(AccountInterface $account) {
  foreach ($this->permissions as $permission) {
    if ($account
      ->hasPermission($permission)) {
      return TRUE;
    }
  }
}